Fix some warnings in script.

This commit is contained in:
Ms2ger 2015-02-12 20:01:38 +01:00
parent fab8092581
commit e921ce859e
12 changed files with 29 additions and 18 deletions

View file

@ -107,7 +107,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLBodyElement> {
EventTargetCast::from_ref(*self)
};
evtarget.set_event_handler_uncompiled(cx, url, reflector,
name.slice_from(2),
&name[2..],
attr.value().as_slice().to_owned());
}