Merge pull request #3433 from zwarich/jsref-self-helpers

More progress in the &JSRef -> JSRef conversion
This commit is contained in:
Cameron Zwarich 2014-09-20 12:55:21 -07:00
commit d6ba37c68c
69 changed files with 1014 additions and 1017 deletions

View file

@ -72,8 +72,8 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
make_bool_getter!(Disabled)
// http://www.whatwg.org/html/#dom-option-disabled
fn SetDisabled(&self, disabled: bool) {
let elem: JSRef<Element> = ElementCast::from_ref(*self);
fn SetDisabled(self, disabled: bool) {
let elem: JSRef<Element> = ElementCast::from_ref(self);
elem.set_bool_attribute("disabled", disabled)
}