Replace uses of JS<T>.unrooted() with JS::from_rooted #2580

This commit is contained in:
Edit Balint 2014-06-13 14:58:38 +02:00
parent da668f53d9
commit bda29ade09
20 changed files with 51 additions and 53 deletions

View file

@ -42,7 +42,7 @@ impl HTMLCollection {
HTMLCollection {
collection: collection,
reflector_: Reflector::new(),
window: window.unrooted(),
window: JS::from_rooted(window),
}
}
@ -55,7 +55,7 @@ impl HTMLCollection {
impl HTMLCollection {
pub fn create(window: &JSRef<Window>, root: &JSRef<Node>,
filter: Box<CollectionFilter>) -> Temporary<HTMLCollection> {
HTMLCollection::new(window, Live(root.unrooted(), filter))
HTMLCollection::new(window, Live(JS::from_rooted(root), filter))
}
pub fn by_tag_name(window: &JSRef<Window>, root: &JSRef<Node>, tag: DOMString)