mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-40142 navigation: fixed chainable issue with navigation JS
This commit is contained in:
parent
eabe1d3b6b
commit
5838cbd4ff
1 changed files with 5 additions and 1 deletions
|
@ -340,11 +340,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue