info_overlay.js: Remove var toggler.

It would conflict with `exports.toggler` after migration to an ES6
module.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2018-08-04 02:07:25 -04:00 committed by Tim Abbott
parent 24831e5e85
commit ba90834a7a
1 changed files with 4 additions and 6 deletions

View File

@ -22,8 +22,8 @@ exports.set_up_toggler = function () {
}, },
}; };
var toggler = components.toggle(opts); exports.toggler = components.toggle(opts);
var elem = toggler.get(); var elem = exports.toggler.get();
elem.addClass('large allow-overflow'); elem.addClass('large allow-overflow');
var modals = _.map(opts.values, function (item) { var modals = _.map(opts.values, function (item) {
@ -36,8 +36,8 @@ exports.set_up_toggler = function () {
keydown_util.handle({ keydown_util.handle({
elem: modal, elem: modal,
handlers: { handlers: {
left_arrow: toggler.maybe_go_left, left_arrow: exports.toggler.maybe_go_left,
right_arrow: toggler.maybe_go_right, 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(".hotkeys_table .hotkey kbd");
common.adjust_mac_shortcuts("#markdown-instructions kbd"); common.adjust_mac_shortcuts("#markdown-instructions kbd");
exports.toggler = toggler;
}; };
exports.show = function (target) { exports.show = function (target) {