From a0ff35a1532dab21413ce54d50cd66f6ccf5dc7b Mon Sep 17 00:00:00 2001 From: Mark Salsbery <> Date: Wed, 17 Mar 2021 16:18:49 -0700 Subject: [PATCH] more code cleanup --- test/modules/events.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/modules/events.js b/test/modules/events.js index b5f4b89a..94e11da1 100644 --- a/test/modules/events.js +++ b/test/modules/events.js @@ -875,13 +875,10 @@ } var onOpen = function() { - var origClickSetting, - origDblClickSetting; - viewer.removeHandler('open', onOpen); - origClickSetting = viewer.gestureSettingsMouse.clickToZoom; - origDblClickSetting = viewer.gestureSettingsMouse.dblClickToZoom; + var origClickSetting = viewer.gestureSettingsMouse.clickToZoom; + var origDblClickSetting = viewer.gestureSettingsMouse.dblClickToZoom; viewer.gestureSettingsMouse.clickToZoom = false; viewer.gestureSettingsMouse.dblClickToZoom = true;