Browse Source

HUE-4031 [editor] Fix variable naming conflict with contextmenuListener

Johan Ahlen 8 years ago
parent
commit
062295ce2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 2 - 2
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4267,7 +4267,7 @@
           editor.container.removeEventListener('mouseout', mouseoutListener);
           editor.container.removeEventListener('mouseout', mouseoutListener);
         });
         });
 
 
-        var contextmenuListener = function (e) {
+        var onContextMenu = function (e) {
           var selectionRange = editor.selection.getRange();
           var selectionRange = editor.selection.getRange();
           huePubSub.publish('sql.context.popover.hide');
           huePubSub.publish('sql.context.popover.hide');
           huePubSub.publish('sql.syntax.dropdown.hide');
           huePubSub.publish('sql.syntax.dropdown.hide');
@@ -4310,7 +4310,7 @@
           }
           }
         };
         };
 
 
-        var contextmenuListener = editor.container.addEventListener('contextmenu', contextmenuListener);
+        var contextmenuListener = editor.container.addEventListener('contextmenu', onContextMenu);
 
 
         disposeFunctions.push(function () {
         disposeFunctions.push(function () {
           editor.container.removeEventListener('contextmenu', contextmenuListener);
           editor.container.removeEventListener('contextmenu', contextmenuListener);