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

@@ -3,10 +3,6 @@ var render_stream_member_list_entry = require('../templates/stream_member_list_e
var render_subscription_settings = require('../templates/subscription_settings.hbs');
var render_subscription_stream_privacy_modal = require("../templates/subscription_stream_privacy_modal.hbs");
var stream_edit = (function () {
var exports = {};
function setup_subscriptions_stream_hash(sub) {
var hash = hash_util.stream_edit_uri(sub);
hashchange.update_browser_history(hash);
@@ -83,7 +79,7 @@ exports.open_edit_panel_for_row = function (stream_row) {
subs.show_subs_pane.settings();
$(stream_row).addClass("active");
setup_subscriptions_stream_hash(sub);
stream_edit.show_settings_for(stream_row);
exports.show_settings_for(stream_row);
};
exports.open_edit_panel_empty = function () {
@@ -666,10 +662,4 @@ exports.initialize = function () {
};
return exports;
}());
if (typeof module !== 'undefined') {
module.exports = stream_edit;
}
window.stream_edit = stream_edit;
window.stream_edit = exports;