diff options
Diffstat (limited to 'src/components/script/dom/nodelist.rs')
-rw-r--r-- | src/components/script/dom/nodelist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/nodelist.rs b/src/components/script/dom/nodelist.rs index 61a9884e9a9..424eb09416c 100644 --- a/src/components/script/dom/nodelist.rs +++ b/src/components/script/dom/nodelist.rs @@ -59,7 +59,7 @@ impl<'a> NodeListMethods for JSRef<'a, NodeList> { fn Item(&self, index: u32) -> Option<Temporary<Node>> { match self.list_type { _ if index >= self.Length() => None, - Simple(ref elems) => Some(Temporary::new(elems.get(index as uint).clone())), + Simple(ref elems) => Some(Temporary::new(elems[index as uint].clone())), Children(ref node) => { let node = node.root(); node.deref().children().nth(index as uint) |