Add auxiliary method to EventTargetHelpers for events without target

fixup! Add auxiliary method to EventTargetHelpers for events without target
This commit is contained in:
thiagopnts 2014-12-14 02:38:29 -02:00 committed by Thiago Pontes
parent 1bc2c8a639
commit 79487252ca
7 changed files with 21 additions and 15 deletions

View file

@ -81,7 +81,7 @@ impl MessageEvent {
scope, "message".to_string(), false, false, message,
"".to_string(), "".to_string()).root();
let event: JSRef<Event> = EventCast::from_ref(*messageevent);
target.dispatch_event_with_target(None, event).unwrap();
target.dispatch_event(event);
}
}