mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove JS::from_rooted
This commit is contained in:
parent
134fd18767
commit
b45f1918d1
14 changed files with 24 additions and 33 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue