Loading template/app/view/DocTree.js +8 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ Ext.define('Docs.view.DocTree', { } this.on("itemclick", this.onItemClick, this); this.on("beforeitemcollapse", this.handleBeforeExpandCollapse, this); this.on("beforeitemexpand", this.handleBeforeExpandCollapse, this); this.callParent(); Loading Loading @@ -95,6 +97,12 @@ Ext.define('Docs.view.DocTree', { return this.getRootNode().findChildBy(function(n) { return url === n.raw.url; }, this, true); }, handleBeforeExpandCollapse: function(node) { if(this.getView().isAnimating(node)) { return false; } } }); Loading
template/app/view/DocTree.js +8 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ Ext.define('Docs.view.DocTree', { } this.on("itemclick", this.onItemClick, this); this.on("beforeitemcollapse", this.handleBeforeExpandCollapse, this); this.on("beforeitemexpand", this.handleBeforeExpandCollapse, this); this.callParent(); Loading Loading @@ -95,6 +97,12 @@ Ext.define('Docs.view.DocTree', { return this.getRootNode().findChildBy(function(n) { return url === n.raw.url; }, this, true); }, handleBeforeExpandCollapse: function(node) { if(this.getView().isAnimating(node)) { return false; } } });