script: Pass the correct parent node to pre_insert in insertBefore

Closes #1572.
This commit is contained in:
Adrien Bustany 2014-02-04 11:43:41 +01:00
parent 48e9b8f752
commit 2254a9e923
2 changed files with 3 additions and 2 deletions

View file

@ -1346,9 +1346,9 @@ impl Node {
Ok(())
}
pub fn InsertBefore(&self, node: AbstractNode, child: Option<AbstractNode>)
pub fn InsertBefore(&self, abstract_self: AbstractNode, node: AbstractNode, child: Option<AbstractNode>)
-> Fallible<AbstractNode> {
Node::pre_insert(node, node, child)
Node::pre_insert(node, abstract_self, child)
}
pub fn wait_until_safe_to_modify_dom(&self) {