diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-02-12 20:01:38 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-02-12 20:05:14 +0100 |
commit | e921ce859e0b29fefbeb2f1ad0435faa0730aa79 (patch) | |
tree | 5fce96427e4a085621528605162a8b7394da91e7 /components/script/dom/htmlbodyelement.rs | |
parent | fab80925818e53bfb92ffa2684a6834bb9f70f29 (diff) | |
download | servo-e921ce859e0b29fefbeb2f1ad0435faa0730aa79.tar.gz servo-e921ce859e0b29fefbeb2f1ad0435faa0730aa79.zip |
Fix some warnings in script.
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index 06a9456913c..e609169ff05 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -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()); } |