From 653aa40384e809f8fc4a2dcf073163b45a5f2ff6 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 7 Aug 2018 14:22:13 +0000 Subject: [PATCH] Extract buddy_list_create(). This makes buddy_list look more similar to other modules where we don't indent within the boilerplate IIFE. --- static/js/buddy_list.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/static/js/buddy_list.js b/static/js/buddy_list.js index 332e5a42c4..5994f61508 100644 --- a/static/js/buddy_list.js +++ b/static/js/buddy_list.js @@ -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; }