diff options
Diffstat (limited to 'components/script/dom/gamepadbutton.rs')
-rw-r--r-- | components/script/dom/gamepadbutton.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/script/dom/gamepadbutton.rs b/components/script/dom/gamepadbutton.rs index fb5182b7cda..df28f9e6a8e 100644 --- a/components/script/dom/gamepadbutton.rs +++ b/components/script/dom/gamepadbutton.rs @@ -30,9 +30,11 @@ impl GamepadButton { } pub fn new(global: &GlobalScope, pressed: bool, touched: bool) -> DomRoot<GamepadButton> { - reflect_dom_object(Box::new(GamepadButton::new_inherited(pressed, touched)), - global, - GamepadButtonBinding::Wrap) + reflect_dom_object( + Box::new(GamepadButton::new_inherited(pressed, touched)), + global, + GamepadButtonBinding::Wrap, + ) } } |