don't push template nodes onto the stack
This commit is contained in:
1 parent
1587056a4b
commit
24cb503c09
1 file changed
-4
@@ -138,26 +138,22 @@ impl<S: State> RealDom<S> {
|
|||||||
let child_id = self.create_template_node(child, mutations_vec);
|
let child_id = self.create_template_node(child, mutations_vec);
|
||||||
self.add_child(node_id, child_id);
|
self.add_child(node_id, child_id);
|
||||||
}
|
}
|
||||||
self.stack.push(node_id);
|
|
||||||
node_id
|
node_id
|
||||||
}
|
}
|
||||||
TemplateNode::Text(txt) => {
|
TemplateNode::Text(txt) => {
|
||||||
let node_id = self.create_node(Node::new(NodeType::Text {
|
let node_id = self.create_node(Node::new(NodeType::Text {
|
||||||
text: txt.to_string(),
|
text: txt.to_string(),
|
||||||
}));
|
}));
|
||||||
self.stack.push(node_id);
|
|
||||||
node_id
|
node_id
|
||||||
}
|
}
|
||||||
TemplateNode::Dynamic(_) => {
|
TemplateNode::Dynamic(_) => {
|
||||||
let node_id = self.create_node(Node::new(NodeType::Placeholder));
|
let node_id = self.create_node(Node::new(NodeType::Placeholder));
|
||||||
self.stack.push(node_id);
|
|
||||||
node_id
|
node_id
|
||||||
}
|
}
|
||||||
TemplateNode::DynamicText(_) => {
|
TemplateNode::DynamicText(_) => {
|
||||||
let node_id = self.create_node(Node::new(NodeType::Text {
|
let node_id = self.create_node(Node::new(NodeType::Text {
|
||||||
text: String::new(),
|
text: String::new(),
|
||||||
}));
|
}));
|
||||||
self.stack.push(node_id);
|
|
||||||
node_id
|
node_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user