diff options
author | bors-servo <release+servo@mozilla.com> | 2014-06-11 13:09:05 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-06-11 13:09:05 -0400 |
commit | d255a83a48388c0720cc7e495aac15f9ebcf2a7b (patch) | |
tree | 203a31c709aef1c85b84f74c1d383b1f7484324c /src/components/script/script_task.rs | |
parent | 57e8be0c8f9d0c1a506d3a9f1f152865a334bd2c (diff) | |
parent | 44f57ae6da1024a1f9053e8aefda31e6426ab3ba (diff) | |
download | servo-d255a83a48388c0720cc7e495aac15f9ebcf2a7b.tar.gz servo-d255a83a48388c0720cc7e495aac15f9ebcf2a7b.zip |
auto merge of #2636 : Ms2ger/servo/registerbindings, r=larsbergstrom
JS<T> should only be used for members of traced structures; the correct type
for arguments is JSRef.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index e90e263fbd5..c733f6acaf9 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -956,7 +956,7 @@ impl ScriptTask { with_compartment((**cx).ptr, window.reflector().get_jsobject(), || { let mut js_info = page.mut_js_info(); - RegisterBindings::Register(&window.unrooted(), js_info.get_mut_ref()); + RegisterBindings::Register(&*window, js_info.get_mut_ref()); }); self.compositor.set_ready_state(Loading); |