mirror of
https://github.com/servo/servo.git
synced 2025-10-10 13:30:20 +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
|
@ -41,9 +41,9 @@ impl Location {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &Window, page: Rc<Page>) -> JS<Location> {
|
||||
pub fn new(window: &JS<Window>, page: Rc<Page>) -> JS<Location> {
|
||||
reflect_dom_object(~Location::new_inherited(page),
|
||||
window,
|
||||
window.get(),
|
||||
LocationBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue