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:
Steve Howell 2018-08-07 14:22:13 +00:00 committed by Tim Abbott
parent 78a15dd715
commit 653aa40384

View File

@ -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;
}