From 06a3b63923e309b7ad2f8ead02e0583cd3cac334 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 12 Apr 2016 14:58:24 +0200 Subject: [PATCH] jshint compliance for toolbar.js --- www/common/toolbar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index 6b6323684..942fb586d 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -134,20 +134,20 @@ define([ var data = (userData) ? (userData[user] || null) : null; var userName = (data) ? data.name : null; if(userName) { - if(i === 0) list = ' : '; + if(i === 0) { list = ' : '; } list += userName + ', '; i++; } } }); return (i > 0) ? list.slice(0, -2) : list; - } + }; var createChangeName = function($container, userList, buttonID) { var id = uid(); userList.innerHTML = 'Change name'; return $container.find('#'+id)[0]; - } + }; var updateUserList = function (myUserName, listElement, userList, userData) { var meIdx = userList.indexOf(myUserName); @@ -241,7 +241,7 @@ define([ userData = newUserData; } updateUserList(myUserName, userListElement, users, userData); - } + }; var ks = function () { if (connected) { kickSpinner(spinner, false); }