~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/lp-links.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-18 00:57:28 UTC
  • mfrom: (13978.1.2 js-regression-849121)
  • Revision ID: launchpad@pqm.canonical.com-20110918005728-aw8dxa9wfd1t0q8d
[r=wgrant][bug=849121] Fixes the lp-links edge case of having no
        branches or no bugs. Added more tests to catch the edge cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        // We have a collection of valid and invalid links containing links of
29
29
        // type link_type, so we need to remove the existing link_class,
30
30
        // replace it with an invalid-link class, and set the link title.
 
31
        if(!Y.Lang.isValue(link_info[link_type])) {
 
32
            return;
 
33
        }
31
34
        var invalid_links = link_info[link_type].invalid || {};
32
35
        var valid_links = link_info[link_type].valid || {};
33
36