Pass &JS<Window> to reflect_dom_object.

This commit is contained in:
Ms2ger 2014-03-04 14:13:58 +01:00
parent 6291aac170
commit 23b7277b54
23 changed files with 26 additions and 26 deletions

View file

@ -28,7 +28,7 @@ impl ClientRectList {
pub fn new(window: &JS<Window>,
rects: ~[JS<ClientRect>]) -> JS<ClientRectList> {
reflect_dom_object(~ClientRectList::new_inherited(window.clone(), rects),
window.get(), ClientRectListBinding::Wrap)
window, ClientRectListBinding::Wrap)
}
pub fn Length(&self) -> u32 {