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
The problem with that if when, then, on the same DOM element I do:
$('.grid-stack').gridstack(options);//Will do nothing!
This code do nothing because the first thing you do is:
$.fn.gridstack=function(opts){returnthis.each(function(){varo=$(this);if(!o.data('gridstack')){// <= this will never be true, because destroy doesn't have removed this data objecto.data('gridstack',newGridStack(this,opts));}});};
The text was updated successfully, but these errors were encountered:
$('.grid-stack').gridstack(options);vargridStack=$('.grid-stack').data("gridstack");gridStack.destroy(false);gridStack.container.removeData("gridstack");$('.grid-stack').gridstack(options);//Now, this works as expected
radiolips
added a commit
to radiolips/gridstack.js
that referenced
this issue
Aug 17, 2016
@Tuizi Apologies for the delay, but I believe you will no longer need to use your workaround. Thanks for your patience, and let us know if you're having any continued issues.
Hello,
The destroy method with parameter
false
, doesn't remove the "data" object attach to the DOM.Here is a example:
The problem with that if when, then, on the same DOM element I do:
This code do nothing because the first thing you do is:
The text was updated successfully, but these errors were encountered: