From 2fac31b401c3ec1e24f735802fcc704ddc2a615c Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 5 Nov 2018 11:40:39 +0200 Subject: [PATCH] [effects/logout] Put "use strict" at the beginning of the script --- effects/logout/package/contents/code/main.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/effects/logout/package/contents/code/main.js b/effects/logout/package/contents/code/main.js index ca916d9933..8993a9b189 100644 --- a/effects/logout/package/contents/code/main.js +++ b/effects/logout/package/contents/code/main.js @@ -19,17 +19,17 @@ 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 logoutEffect = { inDuration: animationTime(800), outDuration: animationTime(400), loadConfig: function () { - "use strict"; logoutEffect.inDuration = animationTime(800); logoutEffect.outDuration = animationTime(400); }, isLogoutWindow: function (window) { - "use strict"; if (window.windowClass === "ksmserver ksmserver") { return true; } @@ -39,7 +39,6 @@ var logoutEffect = { return false; }, opened: function (window) { - "use strict"; if (!logoutEffect.isLogoutWindow(window)) { return; } @@ -57,7 +56,6 @@ var logoutEffect = { }); }, closed: function (window) { - "use strict"; if (!logoutEffect.isLogoutWindow(window)) { return; } @@ -75,7 +73,6 @@ var logoutEffect = { }); }, init: function () { - "use strict"; logoutEffect.loadConfig(); effects.windowAdded.connect(logoutEffect.opened); effects.windowShown.connect(logoutEffect.opened);