diff options
Diffstat (limited to 'components/script/dom/gamepadbuttonlist.rs')
-rw-r--r-- | components/script/dom/gamepadbuttonlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/gamepadbuttonlist.rs b/components/script/dom/gamepadbuttonlist.rs index 809760baca2..46f69fb97ad 100644 --- a/components/script/dom/gamepadbuttonlist.rs +++ b/components/script/dom/gamepadbuttonlist.rs @@ -31,7 +31,7 @@ impl GamepadButtonList { rooted_vec!(let list <- buttons.iter() .map(|btn| GamepadButton::new(&global, btn.pressed, btn.touched))); - reflect_dom_object(box GamepadButtonList::new_inherited(list.r()), + reflect_dom_object(Box::new(GamepadButtonList::new_inherited(list.r())), global, GamepadButtonListBinding::Wrap) } |