mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
don't replace style text if equal to new one [browser]
This commit is contained in:
@@ -130,7 +130,9 @@ function createCSS(styles, sheet, lastModified) {
|
||||
} else {
|
||||
(function (node) {
|
||||
if (css.childNodes.length > 0) {
|
||||
css.replaceChild(node, css.firstChild);
|
||||
if (css.firstChild.nodeValue !== node.nodeValue) {
|
||||
css.replaceChild(node, css.firstChild);
|
||||
}
|
||||
} else {
|
||||
css.appendChild(node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user