Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multi <style> generation #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreas-trad
Copy link

If the autogenerate_stylesheet option is set to true then the library is adding multiple times the same style on the head of the document (see the source of the http://gridster.net/demos/adding-widgets-dynamically.html demo in order to observe this). With this correction the gridster style element is only inserted once on the head

If the autogenerate_stylesheet option is set to true then the library is adding multiple times the same style on the head of the document (see the source of the http://gridster.net/demos/adding-widgets-dynamically.html demo in order to observe this). With this correction the gridster style element is only inserted once on the style.
@dsmorse
Copy link

dsmorse commented Apr 8, 2015

Looks great I merged it into my fork dsmorse/gridster.js

@dsmorse
Copy link

dsmorse commented Apr 12, 2015

Just as an FYI, this causes a problem is you use multiple namespaces... I'm working a fix for my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants