Draggable: $.ui.ddmanager.current not released on draggable _destroy
|Reported by:||eshcharc||Owned by:|
In the days of client side frameworks and SPAs, considerations need to be made regarding client side page switch and optimizations and cleaning of assets.
When we examined and profiled our SPA on a page switch scenario, we've noticed that a jQuery-UI plugin is holding a whole element tree. A further examination led us to a draggable and the "global" $.ui.ddmanager.current.
It seems that when a draggable is being destryed via _destroy, $.ui.ddmanager.current which is linked to this draggable, is not taken care of and keep a reference to the draggable and all of its tree elements. When a client side framework is involved, that makes it worse.
That can quite easily be treated.
Change History (3)
comment:2 Changed 2 years ago by
|Status:||new → open|
|Summary:||$.ui.ddmanager.current not released on draggable _destroy → Draggable: $.ui.ddmanager.current not released on draggable _destroy|