mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Extract buddy_list_create().
This makes buddy_list look more similar to other modules where we don't indent within the boilerplate IIFE.
This commit is contained in:
parent
78a15dd715
commit
653aa40384
@ -1,6 +1,6 @@
|
||||
/* eslint indent: "off" */
|
||||
|
||||
var buddy_list = (function () {
|
||||
|
||||
function buddy_list_create() {
|
||||
var self = {};
|
||||
|
||||
self.container_sel = '#user_presences';
|
||||
@ -309,8 +309,13 @@ var buddy_list = (function () {
|
||||
};
|
||||
|
||||
return self;
|
||||
}());
|
||||
}
|
||||
|
||||
var exports = buddy_list_create();
|
||||
|
||||
return exports;
|
||||
|
||||
}());
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = buddy_list;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user