diff options
Diffstat (limited to 'src/components/script/dom/bindings/callback.rs')
-rw-r--r-- | src/components/script/dom/bindings/callback.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/callback.rs b/src/components/script/dom/bindings/callback.rs index 3cfb3257e5b..865bd9d3ef7 100644 --- a/src/components/script/dom/bindings/callback.rs +++ b/src/components/script/dom/bindings/callback.rs @@ -115,7 +115,7 @@ pub struct CallSetup { impl CallSetup { pub fn new<T: CallbackContainer>(callback: &T, handling: ExceptionHandling) -> CallSetup { let global = global_object_for_js_object(callback.callback()).root(); - let cx = global.deref().get_cx(); + let cx = global.root_ref().get_cx(); CallSetup { cx: cx, _handling: handling |