diff options
author | nxnfufunezn <nxnfufunezn@gmail.com> | 2015-10-31 17:41:00 +0530 |
---|---|---|
committer | nxnfufunezn <nxnfufunezn@gmail.com> | 2015-10-31 18:15:16 +0530 |
commit | d8ef3809a6c73922a5affc475f623a0f1152be28 (patch) | |
tree | 282199e1d9c244c20d62f35b7f6517913d2e37f0 /components/script/dom/nodelist.rs | |
parent | 521a87180a85709f8f704df33537f79bd131bf71 (diff) | |
download | servo-d8ef3809a6c73922a5affc475f623a0f1152be28.tar.gz servo-d8ef3809a6c73922a5affc475f623a0f1152be28.zip |
Removed JS::root Fixes #8251
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r-- | components/script/dom/nodelist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 490df73bd56..68e3b7ee424 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -66,7 +66,7 @@ impl NodeListMethods for NodeList { fn Item(&self, index: u32) -> Option<Root<Node>> { match self.list_type { NodeListType::Simple(ref elems) => { - elems.get(index as usize).map(|node| node.root()) + elems.get(index as usize).map(|node| Root::from_ref(&**node)) }, NodeListType::Children(ref list) => list.item(index), } |