Pass &JS<Window> to some constructors.

This commit is contained in:
Ms2ger 2014-03-04 14:10:33 +01:00
parent b6138580d3
commit 6291aac170
11 changed files with 29 additions and 24 deletions

View file

@ -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()
};