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
{{ message }}
Repository navigation
method to have less find and parse new stylesheets added to DOM #713
Scenario:
I have some HTML that is dynamically loaded that contains a tag in it. When I add that HTML to the DOM, I'd like to be able to also call a method on LESS to tell it to rescan the DOM for new LESS stylesheets, and compile them into CSS.
I tried the refresh() method, but that will only reload the stylesheets that LESS found when it's JS was loaded, not rescan the DOM.
It seems like the code that builds the less.sheets[] array should probably go inside the refresh() method.
Activity
levithomason commentedon Oct 16, 2014
Fixed in #2233. Please move any further conversation to that PR.
Fixes less#713, less#771, less#1161