mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user