Use an Atom for Event.type

This commit is contained in:
David Zbarsky 2015-10-25 10:29:33 -07:00
parent 601169c0e5
commit 0070adb71f
5 changed files with 27 additions and 21 deletions

View file

@ -60,7 +60,7 @@ fn dispatch_to_listeners(event: &Event, target: &EventTarget, chain: &[&EventTar
_ => None,
};
let type_ = event.Type();
let type_ = event.type_();
/* capturing */
event.set_phase(EventPhase::Capturing);