diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-21 16:30:12 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-27 00:55:03 +0200 |
commit | 34858fd0c94d470f69f4ed206f7b79dca2dbfb2a (patch) | |
tree | 83c62ff0cfd48616f672ab892b3ed8f617c453d4 /components/script/dom/bindings/callback.rs | |
parent | e179cb02fff68d12c1461dd655a991088c647d68 (diff) | |
download | servo-34858fd0c94d470f69f4ed206f7b79dca2dbfb2a.tar.gz servo-34858fd0c94d470f69f4ed206f7b79dca2dbfb2a.zip |
Clean up the functions to retrieve a global root from JS objects
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 e5168e57768..c9424adf5b2 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -164,7 +164,7 @@ impl CallSetup { /// Performs the setup needed to make a call. #[allow(unrooted_must_root)] pub fn new<T: CallbackContainer>(callback: &T, handling: ExceptionHandling) -> CallSetup { - let global = global_root_from_object(callback.callback()); + let global = unsafe { global_root_from_object(callback.callback()) }; let cx = global.r().get_cx(); let exception_compartment = unsafe { |