summaryrefslogtreecommitdiffstats
path: root/theme-compiler/src/com/vaadin/sass
diff options
context:
space:
mode:
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass')
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java b/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java
index 5aa90151b9..4e54416522 100644
--- a/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java
+++ b/theme-compiler/src/com/vaadin/sass/internal/visitor/MixinNodeHandler.java
@@ -60,16 +60,10 @@ public class MixinNodeHandler {
replacePossibleArguments(mixinNode, defClone);
Node previous = mixinNode;
- for (final Node child : defClone.getChildren()) {
-
- Node clone = (Node) DeepCopy.copy(child);
-
- replaceChildVariables(defClone, clone);
-
- mixinNode.getParentNode().appendChild(clone, previous);
-
- previous = clone;
-
+ for (final Node child : new ArrayList<Node>(defClone.getChildren())) {
+ replaceChildVariables(defClone, child);
+ mixinNode.getParentNode().appendChild(child, previous);
+ previous = child;
}
}