Cleanup HTMLCollection binding.

This commit is contained in:
Ms2ger 2013-10-23 20:59:14 +02:00
parent d2b57ba7c1
commit 8cb4976136
7 changed files with 32 additions and 39 deletions

View file

@ -20,7 +20,7 @@ impl HTMLMapElement {
}
pub fn Areas(&self) -> @mut HTMLCollection {
let (scope, cx) = self.htmlelement.element.node.get_scope_and_cx();
HTMLCollection::new(~[], cx, scope)
let window = self.htmlelement.element.node.owner_doc().document().window;
HTMLCollection::new(window, ~[])
}
}