diff options
author | Corey Farwell <coreyf@rwell.org> | 2016-11-06 11:03:14 -0500 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2016-11-06 11:03:14 -0500 |
commit | 54e490a3c849e055855a13014a3f0a333e028c91 (patch) | |
tree | f57ebcf8fdefa9506b571a7c97e87e694c95421b /components/script/dom/serviceworker.rs | |
parent | c62ce53efa75c1d817669253036c2621caac88bf (diff) | |
download | servo-54e490a3c849e055855a13014a3f0a333e028c91.tar.gz servo-54e490a3c849e055855a13014a3f0a333e028c91.zip |
Add more event names to atom list; use more `atom` macros.
Diffstat (limited to 'components/script/dom/serviceworker.rs')
-rw-r--r-- | components/script/dom/serviceworker.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/serviceworker.rs b/components/script/dom/serviceworker.rs index 373ed38c761..f61dcc4e41c 100644 --- a/components/script/dom/serviceworker.rs +++ b/components/script/dom/serviceworker.rs @@ -18,7 +18,6 @@ use dom::globalscope::GlobalScope; use js::jsapi::{HandleValue, JSContext}; use script_thread::Runnable; use script_traits::{ScriptMsg, DOMMessage}; -use servo_atoms::Atom; use std::cell::Cell; use url::Url; @@ -62,7 +61,7 @@ impl ServiceWorker { pub fn set_transition_state(&self, state: ServiceWorkerState) { self.state.set(state); - self.upcast::<EventTarget>().fire_event(Atom::from("statechange")); + self.upcast::<EventTarget>().fire_event(atom!("statechange")); } pub fn get_script_url(&self) -> Url { |