FIX: moves debouncing inside function

FIX: moves debouncing inside function

diff --git a/javascripts/discourse/initializers/discourse-quick-whisper.js.es6 b/javascripts/discourse/initializers/discourse-quick-whisper.js.es6
index 9a498ee..a5cb0aa 100644
--- a/javascripts/discourse/initializers/discourse-quick-whisper.js.es6
+++ b/javascripts/discourse/initializers/discourse-quick-whisper.js.es6
@@ -56,7 +56,11 @@ export default {
         });
       }
 
-      function assignSelf() {
+      function debouncedTrackTopic() {
+        debounce(api, trackTopic, 5000, true);
+      }
+
+      function trackTopic() {
         const topic = fetchCurrentTopic();
         if (!topic) {
           return;
@@ -95,13 +99,9 @@ export default {
           .save();
       }
 
-      api.addKeyboardShortcut(
-        "ctrl+shift+l",
-        () => debounce(api, assignSelf, 5000, true),
-        {
-          global: true
-        }
-      );
+      api.addKeyboardShortcut("ctrl+shift+l", debouncedTrackTopic, {
+        global: true
+      });
 
       function buttonLabel() {
         const topic = fetchCurrentTopic(),
@@ -131,7 +131,7 @@ export default {
           return buttonLabel();
         },
         action() {
-          debounce(api, assignSelf, 5000, true);
+          debouncedTrackTopic();
         },
         dropdown: true,
         classNames: ["quick-whisper"],

GitHub sha: f2394922c2c3779ae78dff9eae5868d3d78bb2d4