Root Temporary values for the duration of their lifetime.

This commit is contained in:
Josh Matthews 2014-04-17 20:28:01 -04:00
parent 522d3f167b
commit a09a4bd297
3 changed files with 30 additions and 15 deletions

View file

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