aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/touchlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/touchlist.rs')
-rw-r--r--components/script/dom/touchlist.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/touchlist.rs b/components/script/dom/touchlist.rs
index 8881bec0faa..407a0e296d2 100644
--- a/components/script/dom/touchlist.rs
+++ b/components/script/dom/touchlist.rs
@@ -25,7 +25,7 @@ impl TouchList {
}
pub fn new(window: &Window, touches: &[&Touch]) -> DomRoot<TouchList> {
- reflect_dom_object(box TouchList::new_inherited(touches),
+ reflect_dom_object(Box::new(TouchList::new_inherited(touches)),
window, TouchListBinding::Wrap)
}
}