Skip to content

Commit

Permalink
Use Attr::value() whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Aug 22, 2014
1 parent f87b7f4 commit 6083891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/script/dom/attr.rs
Expand Up @@ -117,7 +117,7 @@ impl Attr {
if namespace_is_null {
vtable_for(node).before_remove_attr(
self.local_name(),
self.value.deref().borrow().as_slice().to_string());
self.value().as_slice().to_string())
}
}
FirstSetAttr => {}
Expand All @@ -128,7 +128,7 @@ impl Attr {
if namespace_is_null {
vtable_for(node).after_set_attr(
self.local_name(),
self.value.deref().borrow().as_slice().to_string());
self.value().as_slice().to_string())
}
}

Expand All @@ -147,7 +147,7 @@ impl<'a> AttrMethods for JSRef<'a, Attr> {
}

fn Value(&self) -> DOMString {
self.value.deref().borrow().as_slice().to_string()
self.value().as_slice().to_string()
}

fn SetValue(&self, value: DOMString) {
Expand Down

0 comments on commit 6083891

Please sign in to comment.