Remove JS::from_rooted

This commit is contained in:
Anthony Ramine 2016-05-31 14:43:58 +02:00
parent 134fd18767
commit b45f1918d1
14 changed files with 24 additions and 33 deletions

View file

@ -43,7 +43,7 @@ impl NodeList {
pub fn new_simple_list<T>(window: &Window, iter: T) -> Root<NodeList>
where T: Iterator<Item=Root<Node>> {
NodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_rooted(&r)).collect()))
NodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_ref(&*r)).collect()))
}
pub fn new_child_list(window: &Window, node: &Node) -> Root<NodeList> {