diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-01-02 09:22:51 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-01-02 09:22:51 -0700 |
commit | 141b5d038fad3c0c44a6f1b309b8ca9edea54580 (patch) | |
tree | d8f7fbbcba47b42eb2e0cc162605620bbc6f7a23 /components/script/dom/bindings/callback.rs | |
parent | a61417e2a87004e30e2a02f2e6ae58629062e3d5 (diff) | |
parent | 203d1669c8ce98468c7935ead8f0ef4c803dd5a0 (diff) | |
download | servo-141b5d038fad3c0c44a6f1b309b8ca9edea54580.tar.gz servo-141b5d038fad3c0c44a6f1b309b8ca9edea54580.zip |
auto merge of #4526 : servo/servo/deref-1, r=Manishearth
This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 9d74b0560da..ec6071e0700 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -147,7 +147,7 @@ impl CallSetup { pub fn new<T: CallbackContainer>(callback: T, handling: ExceptionHandling) -> CallSetup { let global = global_object_for_js_object(callback.callback()); let global = global.root(); - let cx = global.root_ref().get_cx(); + let cx = global.r().get_cx(); CallSetup { cx: cx, _handling: handling |