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

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