Make DOM getters that return &JS<T> return Temporary<T> instead #3707

This commit is contained in:
Edit Balint 2014-10-22 15:18:48 +02:00
parent 590a93120a
commit daf9e59869
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ impl BrowserContext {
pub fn active_window(&self) -> Temporary<Window> {
let doc = self.active_document().root();
Temporary::new(doc.window().clone())
doc.window()
}
pub fn window_proxy(&self) -> *mut JSObject {