We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acb96e5 + b39b689 commit 64b91c9Copy full SHA for 64b91c9
lib/public/livereload.js
@@ -1004,8 +1004,19 @@ __less = LessPlugin = (function() {
1004
}
1005
return false;
1006
};
1007
+ LessPlugin.prototype.clearGeneratedStyles = function() {
1008
+ var _i, _ref, style;
1009
+ _ref = document.getElementsByTagName('style');
1010
+ for (var _i = _ref.length - 1; _i >= 0; _i--) {
1011
+ style = _ref[_i];
1012
+ if (style.id && style.id.match(/less\:/)) {
1013
+ style.parentNode.removeChild(style);
1014
+ }
1015
+ };
1016
1017
LessPlugin.prototype.reloadLess = function(path) {
1018
var link, links, _i, _len;
1019
+ this.clearGeneratedStyles();
1020
links = (function() {
1021
var _i, _len, _ref, _results;
1022
_ref = document.getElementsByTagName('link');
0 commit comments