mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Pass &JS<Window> to reflect_dom_object.
This commit is contained in:
parent
6291aac170
commit
23b7277b54
23 changed files with 26 additions and 26 deletions
|
@ -34,7 +34,7 @@ impl NodeList {
|
|||
pub fn new(window: &JS<Window>,
|
||||
list_type: NodeListType) -> JS<NodeList> {
|
||||
reflect_dom_object(~NodeList::new_inherited(window.clone(), list_type),
|
||||
window.get(), NodeListBinding::Wrap)
|
||||
window, NodeListBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn new_simple_list(window: &JS<Window>, elements: ~[JS<Node>]) -> JS<NodeList> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue