~ted/lazr-js/annoying-debug-message

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/widget/widget-stdmod.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-09-09 14:20:30 UTC
  • mfrom: (182.1.3 yui-3.2)
  • Revision ID: launchpad@pqm.canonical.com-20100909142030-13w6vo0ixfysxc15
[r=beuno] Update lazr-js to yui-3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.com/yui/license.html
5
 
version: 3.1.2
6
 
build: 56
 
5
version: 3.2.0
 
6
build: 2676
7
7
*/
8
8
YUI.add('widget-stdmod', function(Y) {
9
9
 
467
467
                    this._addNodeHTML(node, content, where);
468
468
                }
469
469
                this.set(section + CONTENT_SUFFIX, this._getStdModContent(section), {src:UI});
470
 
                this.fire(ContentUpdate);
 
470
            } else {
 
471
                this._eraseStdMod(section);
471
472
            }
 
473
            this.fire(ContentUpdate);
472
474
        },
473
475
 
474
476
        /**
495
497
        },
496
498
 
497
499
        /**
 
500
         * Removes the DOM node for the given section.
 
501
         *
 
502
         * @method _eraseStdMod
 
503
         * @protected
 
504
         * @param {String} section The section to remove. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.
 
505
         */
 
506
        _eraseStdMod : function(section) {
 
507
            var sectionNode = this.getStdModNode(section);
 
508
            if (sectionNode) {
 
509
                sectionNode.remove(true);
 
510
                delete this[section + NODE_SUFFIX];
 
511
            }
 
512
        },
 
513
 
 
514
        /**
498
515
         * Helper method to insert the Node for the given section into the correct location in the contentBox.
499
516
         *
500
517
         * @method _insertStdModSection
788
805
    Y.WidgetStdMod = StdMod;
789
806
 
790
807
 
791
 
}, '3.1.2' ,{requires:['widget']});
 
808
}, '3.2.0' ,{requires:['base-build', 'widget']});