Mixin to track handles and release them when instance is destroyed.
Call this.own(...) on list of handles (returned from dojo/aspect, dojo/on, dojo/Stateful::watch, or any class (including widgets) with a destroyRecursive() or destroy() method. Then call destroy() later to destroy this instance and release the resources.
See the dijit/Destroyable reference documentation for more information.
Destroy this class, releasing any resources registered via own().
Parameter | Type | Description |
---|---|---|
preserveDom | Boolean |
Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.
The array of specified handles, so you can do for example:
var handle = this.own(on(...))[0];