From 55dec407041b339fdfbb76b60daa7b08885932c0 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 5 Nov 2018 11:43:16 +0200 Subject: [PATCH] [effects/login] Put "use strict" at the beginning of the script --- effects/login/package/contents/code/main.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/effects/login/package/contents/code/main.js b/effects/login/package/contents/code/main.js index 09e008abb7..e724d82514 100644 --- a/effects/login/package/contents/code/main.js +++ b/effects/login/package/contents/code/main.js @@ -18,16 +18,16 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . *********************************************************************/ -/*global effect, effects, animate, animationTime, Effect*/ + +"use strict"; + var loginEffect = { duration: animationTime(2000), isFadeToBlack: false, loadConfig: function () { - "use strict"; loginEffect.isFadeToBlack = effect.readConfig("FadeToBlack", false); }, isLoginSplash: function (window) { - "use strict"; var windowClass = window.windowClass; if (windowClass === "ksplashx ksplashx") { return true; @@ -41,7 +41,6 @@ var loginEffect = { return false; }, fadeOut: function (window) { - "use strict"; animate({ window: window, duration: loginEffect.duration, @@ -51,7 +50,6 @@ var loginEffect = { }); }, fadeToBlack: function (window) { - "use strict"; animate({ window: window, duration: loginEffect.duration / 2, @@ -74,7 +72,6 @@ var loginEffect = { }); }, closed: function (window) { - "use strict"; if (!loginEffect.isLoginSplash(window)) { return; } @@ -85,7 +82,6 @@ var loginEffect = { } }, init: function () { - "use strict"; effect.configChanged.connect(loginEffect.loadConfig); effects.windowClosed.connect(loginEffect.closed); loginEffect.loadConfig();