js: Purge useless IIFEs.

With webpack, variables declared in each file are already file-local
(Global variables need to be explicitly exported), so these IIFEs are
no longer needed.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2019-10-25 00:45:13 -07:00
committed by Tim Abbott
parent 5f590d3500
commit d17b577d0c
209 changed files with 345 additions and 2140 deletions

View File

@@ -5,10 +5,6 @@ var render_stream_sidebar_actions = require('../templates/stream_sidebar_actions
var render_topic_sidebar_actions = require('../templates/topic_sidebar_actions.hbs');
var render_unstar_messages_modal = require("../templates/unstar_messages_modal.hbs");
var stream_popover = (function () {
var exports = {};
// We handle stream popovers and topic popovers in this
// module. Both are popped up from the left sidebar.
var current_stream_sidebar_elem;
@@ -497,10 +493,4 @@ exports.register_topic_handlers = function () {
});
};
return exports;
}());
if (typeof module !== 'undefined') {
module.exports = stream_popover;
}
window.stream_popover = stream_popover;
window.stream_popover = exports;