aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/worker.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-11-02 23:49:52 -0400
committerCorey Farwell <coreyf@rwell.org>2016-11-03 17:04:30 -0400
commitf447040ea98d5a92f95d6dd3116939544441b5d8 (patch)
tree5aad6d951310a4ef5d8271c01dab15fe5c80d518 /components/script/dom/worker.rs
parent80575c3d2e033e27bd4c222662e405f5714d1a4d (diff)
downloadservo-f447040ea98d5a92f95d6dd3116939544441b5d8.tar.gz
servo-f447040ea98d5a92f95d6dd3116939544441b5d8.zip
Migrate `EventTarget` event firing functions to use `Atom`s.
This allows us to utilize more `atom` macros.
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r--components/script/dom/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs
index 72f058c16f2..42c0d1e553d 100644
--- a/components/script/dom/worker.rs
+++ b/components/script/dom/worker.rs
@@ -138,7 +138,7 @@ impl Worker {
pub fn dispatch_simple_error(address: TrustedWorkerAddress) {
let worker = address.root();
- worker.upcast().fire_event("error");
+ worker.upcast().fire_event(atom!("error"));
}
#[allow(unsafe_code)]