diff options
Diffstat (limited to 'components/script/dom/radionodelist.rs')
-rw-r--r-- | components/script/dom/radionodelist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/radionodelist.rs b/components/script/dom/radionodelist.rs index e0c35179269..d88fc69eacd 100644 --- a/components/script/dom/radionodelist.rs +++ b/components/script/dom/radionodelist.rs @@ -38,7 +38,7 @@ impl RadioNodeList { pub fn new_simple_list<T>(window: &Window, iter: T) -> Root<RadioNodeList> where T: Iterator<Item=Root<Node>> { - RadioNodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_rooted(&r)).collect())) + RadioNodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_ref(&*r)).collect())) } pub fn empty(window: &Window) -> Root<RadioNodeList> { |