From ba90834a7a7f6ac24306adf92ba89ebac8e32aeb Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 4 Aug 2018 02:07:25 -0400 Subject: [PATCH] info_overlay.js: Remove var toggler. It would conflict with `exports.toggler` after migration to an ES6 module. Signed-off-by: Anders Kaseorg --- static/js/info_overlay.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/static/js/info_overlay.js b/static/js/info_overlay.js index d6e72e079f..bda7823b0c 100644 --- a/static/js/info_overlay.js +++ b/static/js/info_overlay.js @@ -22,8 +22,8 @@ exports.set_up_toggler = function () { }, }; - var toggler = components.toggle(opts); - var elem = toggler.get(); + exports.toggler = components.toggle(opts); + var elem = exports.toggler.get(); elem.addClass('large allow-overflow'); var modals = _.map(opts.values, function (item) { @@ -36,8 +36,8 @@ exports.set_up_toggler = function () { keydown_util.handle({ elem: modal, handlers: { - left_arrow: toggler.maybe_go_left, - right_arrow: toggler.maybe_go_right, + left_arrow: exports.toggler.maybe_go_left, + right_arrow: exports.toggler.maybe_go_right, }, }); }); @@ -46,8 +46,6 @@ exports.set_up_toggler = function () { common.adjust_mac_shortcuts(".hotkeys_table .hotkey kbd"); common.adjust_mac_shortcuts("#markdown-instructions kbd"); - - exports.toggler = toggler; }; exports.show = function (target) {