mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10: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
|
@ -13,7 +13,7 @@ pub struct WindowProxy {
|
|||
}
|
||||
|
||||
impl WindowProxy {
|
||||
pub fn new(owner: JS<Window>) -> JS<WindowProxy> {
|
||||
pub fn new(owner: &JS<Window>) -> JS<WindowProxy> {
|
||||
let proxy = ~WindowProxy {
|
||||
reflector_: Reflector::new()
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue