mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
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:
committed by
Tim Abbott
parent
5f590d3500
commit
d17b577d0c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user