diff options
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r-- | components/script/timers.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs index 786cfbf4c6f..7f608f98f46 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -5,7 +5,6 @@ use dom::bindings::callback::ExceptionHandling::Report; use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::FunctionBinding::Function; -use dom::bindings::global::global_root_from_reflector; use dom::bindings::reflector::Reflectable; use dom::bindings::trace::JSTraceable; use dom::window::ScriptHelpers; @@ -289,7 +288,7 @@ impl ActiveTimers { // step 14 match callback { InternalTimerCallback::StringTimerCallback(code_str) => { - let cx = global_root_from_reflector(this).r().get_cx(); + let cx = this.global().r().get_cx(); let mut rval = RootedValue::new(cx, UndefinedValue()); this.evaluate_js_on_global_with_result(&code_str, rval.handle_mut()); |