mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +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
@@ -1,7 +1,3 @@
|
||||
var rows = (function () {
|
||||
|
||||
var exports = {};
|
||||
|
||||
// We don't need an andSelf() here because we already know
|
||||
// that our next element is *not* a message_row, so this
|
||||
// isn't going to end up empty unless we're at the bottom or top.
|
||||
@@ -107,11 +103,4 @@ exports.id_for_recipient_row = function (recipient_row) {
|
||||
return exports.id(msg_row);
|
||||
};
|
||||
|
||||
return exports;
|
||||
|
||||
}());
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = rows;
|
||||
}
|
||||
window.rows = rows;
|
||||
window.rows = exports;
|
||||
|
||||
Reference in New Issue
Block a user