From: Stephen Seo Date: Fri, 29 Apr 2022 02:23:03 +0000 (+0900) Subject: front-end: minor refactoring X-Git-Tag: sprint_06_day_5~11 X-Git-Url: https://git.seodisparate.com/stephenseo/static/'%20relPath%20'search/mag_sel.svg?a=commitdiff_plain;h=e6152331b0f62d3da0486457e273e832c4adb0f4;p=EN605.607.81.SP22_ASDM_Project front-end: minor refactoring --- diff --git a/front_end/src/yew_components.rs b/front_end/src/yew_components.rs index 3ea0c7c..04094d0 100644 --- a/front_end/src/yew_components.rs +++ b/front_end/src/yew_components.rs @@ -607,7 +607,7 @@ impl Wrapper { fn cleanup_disconnect_callbacks(&mut self) { let window = web_sys::window().expect("Should be able to get window"); // if previously set disconnect callback is set, unset it - if let Some(callback) = self.cleanup_id_callback.borrow_mut().take() { + if let Some(callback) = self.cleanup_id_callback.take() { let mut options = EventListenerOptions::new(); options.capture(true); if window