Use atom!("error") in EventTarget::get_compiled_event_handler

This commit is contained in:
Anthony Ramine 2016-02-24 17:42:39 +01:00
parent cc030df36e
commit 25ae4ed093

View file

@ -390,7 +390,7 @@ impl EventTarget {
b"colno\0" as *const u8 as *const c_char,
b"error\0" as *const u8 as *const c_char];
// step 10
let is_error = ty == &Atom::from("error") && self.is::<Window>();
let is_error = ty == &atom!("error") && self.is::<Window>();
let args = unsafe {
if is_error {
&ERROR_ARG_NAMES[..]