diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-03-04 14:13:58 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-03-04 14:13:58 +0100 |
commit | 23b7277b5465d8dbf9cdf94f672688e7af9b89ab (patch) | |
tree | 32b18fe6e737e806582f986f028acac4868d582b /src/components/script/dom/nodelist.rs | |
parent | 6291aac1701430ec9c55ff852bbdd653a8a9acb4 (diff) | |
download | servo-23b7277b5465d8dbf9cdf94f672688e7af9b89ab.tar.gz servo-23b7277b5465d8dbf9cdf94f672688e7af9b89ab.zip |
Pass &JS<Window> to reflect_dom_object.
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 9274e4faed5..ab2bbb7f575 100644 --- a/src/components/script/dom/nodelist.rs +++ b/src/components/script/dom/nodelist.rs @@ -34,7 +34,7 @@ impl NodeList { pub fn new(window: &JS<Window>, list_type: NodeListType) -> JS<NodeList> { reflect_dom_object(~NodeList::new_inherited(window.clone(), list_type), - window.get(), NodeListBinding::Wrap) + window, NodeListBinding::Wrap) } pub fn new_simple_list(window: &JS<Window>, elements: ~[JS<Node>]) -> JS<NodeList> { |