Rewrite NodeChildrenIterator to return Temporary.

This commit is contained in:
Ms2ger 2015-03-30 14:12:20 +02:00
parent bc8ed81dc1
commit c8106da277
11 changed files with 208 additions and 129 deletions

View file

@ -67,7 +67,6 @@ impl<'a> NodeListMethods for JSRef<'a, NodeList> {
NodeListType::Children(ref node) => {
let node = node.root();
node.r().children().nth(index as usize)
.map(|child| Temporary::from_rooted(child))
}
}
}