Opened 9 years ago

Last modified 9 years ago

#15851 closed defect

_Widget.destroy(): release all handles returned from _Widget.on() — at Initial Version

Reported by: bill Owned by: bill
Priority: undecided Milestone: 1.8.1
Component: Dijit Version: 1.8.0
Keywords: Cc:
Blocked By: Blocking:


To safeguard against memory leaks, and to avoid any funny business when calling destroy(true) (which destroys the widget but preserves the DOM), maybe _Widget.on() should call this.own() on every handle it returns.

Also, Destroyable probably shouldn't set handle._odh because it creates an unnecessary limitation that a given handle can only be owned by owned by one Destroyable object. Rather, _odb can be a variable in the closure.

Change History (0)

Note: See TracTickets for help on using tickets.