MDL-40142 navigation: fixed chainable issue with navigation JS

This commit is contained in:
Sam Hemelryk
2013-06-17 09:15:20 +12:00
parent f5dd4b478c
commit bea68c50d6
+5 -1
View File
@@ -376,11 +376,15 @@ BRANCH.prototype = {
},
/**
* Attaches required events to the branch structure.
*
* @chainable
* @method wire
* @return {BRANCH} This function is chainable, it always returns itself.
*/
wire : function() {
this.node = this.node || Y.one('#'+this.get('id'));
if (!this.node) {
return false;
return this;
}
if (this.get('expandable')) {
this.event_ajaxload = this.node.on('ajaxload|click', this.ajaxLoad, this);