Skip to content

Prevent multi <style> generation - #337

Open
andreas-trad wants to merge 1 commit into
ducksboard:masterfrom
andreas-trad:patch-1
Open

Prevent multi <style> generation#337
andreas-trad wants to merge 1 commit into
ducksboard:masterfrom
andreas-trad:patch-1

Conversation

@andreas-trad

Copy link
Copy Markdown

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

dsmorse commented Apr 8, 2015

Copy link
Copy Markdown

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

@dsmorse

dsmorse commented Apr 12, 2015

Copy link
Copy Markdown

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.

2 participants