Open
Description
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;
}