aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmltemplateelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmltemplateelement.rs')
-rw-r--r--src/components/script/dom/htmltemplateelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/htmltemplateelement.rs b/src/components/script/dom/htmltemplateelement.rs
index 8e3b8d115ed..30bf8219d60 100644
--- a/src/components/script/dom/htmltemplateelement.rs
+++ b/src/components/script/dom/htmltemplateelement.rs
@@ -4,7 +4,7 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTemplateElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTemplateElementDerived;
-use dom::bindings::js::{JS, JSRef, Temporary};
+use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document;
use dom::element::HTMLTemplateElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@@ -27,14 +27,14 @@ impl HTMLTemplateElementDerived for EventTarget {
}
impl HTMLTemplateElement {
- pub fn new_inherited(localName: DOMString, document: JS<Document>) -> HTMLTemplateElement {
+ pub fn new_inherited(localName: DOMString, document: &JSRef<Document>) -> HTMLTemplateElement {
HTMLTemplateElement {
htmlelement: HTMLElement::new_inherited(HTMLTemplateElementTypeId, localName, document)
}
}
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLTemplateElement> {
- let element = HTMLTemplateElement::new_inherited(localName, document.unrooted());
+ let element = HTMLTemplateElement::new_inherited(localName, document);
Node::reflect_node(~element, document, HTMLTemplateElementBinding::Wrap)
}
}