diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:04:26 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:04:26 +0100 |
commit | ab52927ac5407e3a9057a03e2207c2dfb10ff572 (patch) | |
tree | 6a0e43869fd1859f24a52af6efd44c27524c2d58 /components | |
parent | 747b6c4262ad93f1eb521d06693b4ea8878e20ef (diff) | |
download | servo-ab52927ac5407e3a9057a03e2207c2dfb10ff572.tar.gz servo-ab52927ac5407e3a9057a03e2207c2dfb10ff572.zip |
Use snake case for the local in get_property_on_prototype.
Diffstat (limited to 'components')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 674c38cbc53..37e150b5fc2 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -420,13 +420,13 @@ pub fn get_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject, *found = false; return true; } - let mut hasProp = 0; - if JS_HasPropertyById(cx, proto, id, &mut hasProp) == 0 { + let mut has_property = 0; + if JS_HasPropertyById(cx, proto, id, &mut has_property) == 0 { return false; } - *found = hasProp != 0; + *found = has_property != 0; let no_output = vp.is_null(); - if hasProp == 0 || no_output { + if has_property == 0 || no_output { return true; } |