diff options
Diffstat (limited to 'src/components/script/dom/htmlvideoelement.rs')
-rw-r--r-- | src/components/script/dom/htmlvideoelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/htmlvideoelement.rs b/src/components/script/dom/htmlvideoelement.rs index 4ef1d9c57a3..3587ab4931a 100644 --- a/src/components/script/dom/htmlvideoelement.rs +++ b/src/components/script/dom/htmlvideoelement.rs @@ -4,7 +4,7 @@ use dom::bindings::codegen::BindingDeclarations::HTMLVideoElementBinding; use dom::bindings::codegen::InheritTypes::HTMLVideoElementDerived; -use dom::bindings::js::JS; +use dom::bindings::js::{JS, JSRef}; use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLVideoElementTypeId; @@ -34,8 +34,8 @@ impl HTMLVideoElement { } } - pub fn new(localName: DOMString, document: &JS<Document>) -> JS<HTMLVideoElement> { - let element = HTMLVideoElement::new_inherited(localName, document.clone()); + pub fn new(localName: DOMString, document: &JSRef<Document>) -> JS<HTMLVideoElement> { + let element = HTMLVideoElement::new_inherited(localName, document.unrooted()); Node::reflect_node(~element, document, HTMLVideoElementBinding::Wrap) } } |