Use macro setters everywhere else

This commit is contained in:
Manish Goregaokar 2014-10-07 21:28:42 +05:30
parent 8cba6c7580
commit 3a1f9bd7fb
5 changed files with 5 additions and 20 deletions

View file

@ -49,10 +49,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
make_bool_getter!(Disabled)
// http://www.whatwg.org/html#dom-optgroup-disabled
fn SetDisabled(self, disabled: bool) {
let elem: JSRef<Element> = ElementCast::from_ref(self);
elem.set_bool_attribute("disabled", disabled)
}
make_bool_setter!(SetDisabled, "disabled")
}
impl<'a> VirtualMethods for JSRef<'a, HTMLOptGroupElement> {