diff options
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 2026232ef..4c516efd8 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -926,8 +926,7 @@ impl JsRuntime { // Event loop middlewares let mut maybe_scheduling = false; { - let state = state_rc.borrow(); - let op_state = state.op_state.clone(); + let op_state = state_rc.borrow().op_state.clone(); for f in &self.event_loop_middlewares { if f(op_state.clone(), cx) { maybe_scheduling = true; |