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
Currently when calling destroy(), it executes remove_style_tags() function. This removes the generated styles from the head if the document, but doesn't clean up Gridster.generated_stylesheets array, so when gridster is later initialized on the same page, it doesn't add the stylesheet. The following piece of code doesn't work as expected:
// don't duplicate stylesheets for the same configuration
var serialized_opts = $.param(opts);
if ($.inArray(serialized_opts, Gridster.generated_stylesheets) >= 0) {
return false;
}
The text was updated successfully, but these errors were encountered:
Currently when calling
destroy()
, it executesremove_style_tags()
function. This removes the generated styles from the head if the document, but doesn't clean upGridster.generated_stylesheets
array, so when gridster is later initialized on the same page, it doesn't add the stylesheet. The following piece of code doesn't work as expected:The text was updated successfully, but these errors were encountered: