mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Pass &JS<Window> to some constructors.
This commit is contained in:
parent
b6138580d3
commit
6291aac170
11 changed files with 29 additions and 24 deletions
|
@ -21,9 +21,9 @@ impl Navigator {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &Window) -> JS<Navigator> {
|
||||
pub fn new(window: &JS<Window>) -> JS<Navigator> {
|
||||
reflect_dom_object(~Navigator::new_inherited(),
|
||||
window,
|
||||
window.get(),
|
||||
NavigatorBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue