aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmltimeelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmltimeelement.rs')
-rw-r--r--src/components/script/dom/htmltimeelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/htmltimeelement.rs b/src/components/script/dom/htmltimeelement.rs
index 15e8101561f..63a73d2f63e 100644
--- a/src/components/script/dom/htmltimeelement.rs
+++ b/src/components/script/dom/htmltimeelement.rs
@@ -4,7 +4,7 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTimeElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTimeElementDerived;
-use dom::bindings::js::{JS, JSRef, Temporary};
+use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTimeElementTypeId;
@@ -28,14 +28,14 @@ impl HTMLTimeElementDerived for EventTarget {
}
impl HTMLTimeElement {
- pub fn new_inherited(localName: DOMString, document: JS<Document>) -> HTMLTimeElement {
+ pub fn new_inherited(localName: DOMString, document: &JSRef<Document>) -> HTMLTimeElement {
HTMLTimeElement {
htmlelement: HTMLElement::new_inherited(HTMLTimeElementTypeId, localName, document)
}
}
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLTimeElement> {
- let element = HTMLTimeElement::new_inherited(localName, document.unrooted());
+ let element = HTMLTimeElement::new_inherited(localName, document);
Node::reflect_node(~element, document, HTMLTimeElementBinding::Wrap)
}
}