From 829259fb794831167c9992bd6b1c71bf81bd8023 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 15 Jul 2014 13:30:19 +0200 Subject: Introduce abstractions for global scopes. Part of #2811. --- src/components/script/dom/htmlcollection.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/script/dom/htmlcollection.rs') diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs index 2438d745518..ed47802324b 100644 --- a/src/components/script/dom/htmlcollection.rs +++ b/src/components/script/dom/htmlcollection.rs @@ -4,6 +4,7 @@ use dom::bindings::codegen::InheritTypes::{ElementCast, NodeCast}; use dom::bindings::codegen::Bindings::HTMLCollectionBinding; +use dom::bindings::global::Window; use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; use dom::element::{Element, AttributeHandlers}; @@ -46,7 +47,7 @@ impl HTMLCollection { pub fn new(window: &JSRef, collection: CollectionTypeId) -> Temporary { reflect_dom_object(box HTMLCollection::new_inherited(collection), - window, HTMLCollectionBinding::Wrap) + &Window(*window), HTMLCollectionBinding::Wrap) } } -- cgit v1.2.3