Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Destroy/init stylesheet issue #227

Open
@asapach

Description

@asapach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions