You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has the effect of modifying this.opts.draggable, setting its members to the same methods that are passed to el.draggable(). Since these new methods reference el, the widget stays in memory even after it is removed. Probably not a huge deal, as only one widget can leak at a time (as this.opts will get overwritten with the new widget's options), but it can make for a frustrating search for a leak.
The text was updated successfully, but these errors were encountered:
radiolips
added a commit
to radiolips/gridstack.js
that referenced
this issue
Aug 17, 2016
Gridstack._prepareElementByNode uses _.extend to set the draggable options and whatnot on an added widget, e.g.:
This has the effect of modifying
this.opts.draggable
, setting its members to the same methods that are passed toel.draggable()
. Since these new methods referenceel
, the widget stays in memory even after it is removed. Probably not a huge deal, as only one widget can leak at a time (asthis.opts
will get overwritten with the new widget's options), but it can make for a frustrating search for a leak.The text was updated successfully, but these errors were encountered: