Migrate EventTarget event firing functions to use Atoms.

This allows us to utilize more `atom` macros.
This commit is contained in:
Corey Farwell 2016-11-02 23:49:52 -04:00
parent 80575c3d2e
commit f447040ea9
16 changed files with 42 additions and 33 deletions

View file

@ -94,7 +94,7 @@ impl Runnable for DetailsNotificationRunnable {
fn handler(self: Box<DetailsNotificationRunnable>) {
let target = self.element.root();
if target.check_toggle_count(self.toggle_number) {
target.upcast::<EventTarget>().fire_event("toggle");
target.upcast::<EventTarget>().fire_event(atom!("toggle"));
}
}
}