diff options
Diffstat (limited to 'components/script/dom/transitionevent.rs')
-rw-r--r-- | components/script/dom/transitionevent.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/transitionevent.rs b/components/script/dom/transitionevent.rs index 5f4d5aa7088..2305a9489ff 100644 --- a/components/script/dom/transitionevent.rs +++ b/components/script/dom/transitionevent.rs @@ -3,7 +3,6 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use crate::dom::bindings::codegen::Bindings::EventBinding::EventMethods; -use crate::dom::bindings::codegen::Bindings::TransitionEventBinding; use crate::dom::bindings::codegen::Bindings::TransitionEventBinding::{ TransitionEventInit, TransitionEventMethods, }; @@ -41,11 +40,7 @@ impl TransitionEvent { type_: Atom, init: &TransitionEventInit, ) -> DomRoot<TransitionEvent> { - let ev = reflect_dom_object( - Box::new(TransitionEvent::new_inherited(init)), - window, - TransitionEventBinding::Wrap, - ); + let ev = reflect_dom_object(Box::new(TransitionEvent::new_inherited(init)), window); { let event = ev.upcast::<Event>(); event.init_event(type_, init.parent.bubbles, init.parent.cancelable); |