this.setTitle(this.title); if(!this.open){ this.hideNode.style.display = this.wipeNode.style.display = "none"; } this._setCss(); dojo.setSelectable(this.titleNode, false); this.inherited(arguments); dijit.setWaiState(this.containerNode, "labelledby", this.titleNode.id); dijit.setWaiState(this.focusNode, "haspopup", "true"); // setup open/close animations var hideNode = this.hideNode, wipeNode = this.wipeNode; this._wipeIn = dojo.fx.wipeIn({ node: this.wipeNode, duration: this.duration, beforeBegin: function(){ hideNode.style.display=""; } }); this._wipeOut = dojo.fx.wipeOut({ node: this.wipeNode, duration: this.duration, onEnd: function(){ hideNode.style.display="none"; } });