if(!this.isExpanded){ return; } // cancel in progress expand operation if(this._wipeIn.status() == "playing"){ this._wipeIn.stop(); } this.isExpanded = false; dijit.setWaiState(this.labelNode, "expanded", "false"); this.contentNode.className = "dijitTreeContent"; this._setExpando(); this._updateItemClasses(this.item); this._wipeOut.play();