diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-02-24 17:28:24 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-02-24 17:52:17 +0100 |
commit | 0adfb080899104d4b51f6de3012ecf0558199b73 (patch) | |
tree | 60a23222f06c60f0f755158617d6256a23a1f5e2 /components/script/dom/customevent.rs | |
parent | f7fb03518836ba45b0883aaaf3b8d38a6ff5eae1 (diff) | |
download | servo-0adfb080899104d4b51f6de3012ecf0558199b73.tar.gz servo-0adfb080899104d4b51f6de3012ecf0558199b73.zip |
Implement From<DOMString> for Atom
Diffstat (limited to 'components/script/dom/customevent.rs')
-rw-r--r-- | components/script/dom/customevent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs index f56e76ab7ff..3dd202d1aee 100644 --- a/components/script/dom/customevent.rs +++ b/components/script/dom/customevent.rs @@ -53,7 +53,7 @@ impl CustomEvent { init: &CustomEventBinding::CustomEventInit) -> Fallible<Root<CustomEvent>> { Ok(CustomEvent::new(global, - Atom::from(&*type_), + Atom::from(type_), init.parent.bubbles, init.parent.cancelable, unsafe { HandleValue::from_marked_location(&init.detail) })) @@ -87,7 +87,7 @@ impl CustomEventMethods for CustomEvent { can_bubble: bool, cancelable: bool, detail: HandleValue) { - self.init_custom_event(Atom::from(&*type_), can_bubble, cancelable, detail) + self.init_custom_event(Atom::from(type_), can_bubble, cancelable, detail) } // https://dom.spec.whatwg.org/#dom-event-istrusted |