aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/window.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-04-17 20:28:01 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-05-03 14:18:31 -0400
commita09a4bd297d48c2702e1e15a901b1fdec32dda83 (patch)
tree4de4af60eea5d6a0947ff1be6d384709c8b2a066 /src/components/script/dom/window.rs
parent522d3f167b12fa79401eea5525c7b6133cae0f06 (diff)
downloadservo-a09a4bd297d48c2702e1e15a901b1fdec32dda83.tar.gz
servo-a09a4bd297d48c2702e1e15a901b1fdec32dda83.zip
Root Temporary values for the duration of their lifetime.
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r--src/components/script/dom/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs
index d3ef0769431..3908db73326 100644
--- a/src/components/script/dom/window.rs
+++ b/src/components/script/dom/window.rs
@@ -342,7 +342,7 @@ impl Window {
script_chan: ScriptChan,
compositor: ~ScriptListener,
image_cache_task: ImageCacheTask)
- -> Temporary<Window> {
+ -> JS<Window> {
let win = ~Window {
eventtarget: EventTarget::new_inherited(WindowTypeId),
script_chan: script_chan,
@@ -357,6 +357,6 @@ impl Window {
browser_context: None,
};
- Temporary::new(WindowBinding::Wrap(cx, win))
+ WindowBinding::Wrap(cx, win)
}
}