Created
November 18, 2010 13:24
-
-
Save linusthe3rd/704962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
//set up your widget | |
dojo.declare("MyTable", dijit._Widget, { | |
//initiation methods for your widget | |
destroy: function(){ | |
//destroy your child widgets | |
dojo.forEach(this._childrenWidgets, function(widget){ | |
widget.destroy(); | |
}); | |
//unsubscribe from topics | |
dojo.forEach(this._topics, dojo.unsubscribe); | |
//disconnect from events | |
dojo.forEach(this._connectHandles, dojo.disconnect); | |
//run parent destroy() method | |
this.inherited(arguments); | |
}, | |
//other methods for your widget | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment