aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-12 20:01:38 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-12 20:05:14 +0100
commite921ce859e0b29fefbeb2f1ad0435faa0730aa79 (patch)
tree5fce96427e4a085621528605162a8b7394da91e7 /components/script/dom/htmlbodyelement.rs
parentfab80925818e53bfb92ffa2684a6834bb9f70f29 (diff)
downloadservo-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.rs2
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());
}