aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/nodelist.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-03-04 14:10:33 +0100
committerMs2ger <ms2ger@gmail.com>2014-03-04 14:10:33 +0100
commit6291aac1701430ec9c55ff852bbdd653a8a9acb4 (patch)
tree347daab4afc528f4f88558630cce8fbb4a300d52 /src/components/script/dom/nodelist.rs
parentb6138580d3d44fe1c34dd863faa38bf1fe4665d9 (diff)
downloadservo-6291aac1701430ec9c55ff852bbdd653a8a9acb4.tar.gz
servo-6291aac1701430ec9c55ff852bbdd653a8a9acb4.zip
Pass &JS<Window> to some constructors.
Diffstat (limited to 'src/components/script/dom/nodelist.rs')
-rw-r--r--src/components/script/dom/nodelist.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/nodelist.rs b/src/components/script/dom/nodelist.rs
index 84de1a56d19..9274e4faed5 100644
--- a/src/components/script/dom/nodelist.rs
+++ b/src/components/script/dom/nodelist.rs
@@ -31,18 +31,18 @@ impl NodeList {
}
}
- pub fn new(window: JS<Window>,
+ 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)
}
pub fn new_simple_list(window: &JS<Window>, elements: ~[JS<Node>]) -> JS<NodeList> {
- NodeList::new(window.clone(), Simple(elements))
+ NodeList::new(window, Simple(elements))
}
pub fn new_child_list(window: &JS<Window>, node: &JS<Node>) -> JS<NodeList> {
- NodeList::new(window.clone(), Children(node.clone()))
+ NodeList::new(window, Children(node.clone()))
}
pub fn Length(&self) -> u32 {