jshint compliance

pull/1/head
ansuz 8 years ago
parent 6c1981c776
commit 1232aa8a79

@ -82,6 +82,7 @@ define([
}); });
}; };
var logoutHandlers = [];
var logout = common.logout = function (cb) { var logout = common.logout = function (cb) {
[ [
userNameKey, userNameKey,
@ -105,7 +106,6 @@ define([
if (cb) { cb(); } if (cb) { cb(); }
}; };
var logoutHandlers= [];
var onLogout = common.onLogout = function (h) { var onLogout = common.onLogout = function (h) {
if (typeof (h) !== "function") { return; } if (typeof (h) !== "function") { return; }
if (logoutHandlers.indexOf(h) !== -1) { return; } if (logoutHandlers.indexOf(h) !== -1) { return; }

@ -628,8 +628,8 @@ define([
var updateIcon = function () { var updateIcon = function () {
$collapse.removeClass('fa-caret-down').removeClass('fa-caret-up'); $collapse.removeClass('fa-caret-down').removeClass('fa-caret-up');
var isCollapsed = !$bar.find('.cke_toolbox_main').is(':visible'); var isCollapsed = !$bar.find('.cke_toolbox_main').is(':visible');
if (isCollapsed) { $collapse.addClass('fa-caret-down') } if (isCollapsed) { $collapse.addClass('fa-caret-down'); }
else { $collapse.addClass('fa-caret-up') } else { $collapse.addClass('fa-caret-up'); }
}; };
updateIcon(); updateIcon();
$collapse.click(function () { $collapse.click(function () {

Loading…
Cancel
Save