~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/formwidgets/formwidgets.js

[rs=buildbot-poller] automatic merge from stable. Revisions: 14268,
        14269, 14270, 14271 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
 
508
508
    /**
509
509
     * Register a widget as part of this encapsulating widget.
 
510
     * Only register the widget if it is not null.
510
511
     *
511
512
     * @method registerWidget
512
513
     */
513
514
    registerWidget: function(widget) {
514
 
        this._widgets.push(widget);
 
515
        if (widget !== null) {
 
516
            this._widgets.push(widget);
 
517
        }
515
518
    },
516
519
 
517
520
    /**