From 26e67f61e28403822e401f1e99fe547f6b0f2cc1 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Thu, 8 Nov 2018 14:32:47 +0200 Subject: [PATCH] [effects/windowaperture] Use strict mode for the whole script --- effects/windowaperture/package/contents/code/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/effects/windowaperture/package/contents/code/main.js b/effects/windowaperture/package/contents/code/main.js index 8c55e840fa..eb14922fbe 100644 --- a/effects/windowaperture/package/contents/code/main.js +++ b/effects/windowaperture/package/contents/code/main.js @@ -19,14 +19,14 @@ along with this program. If not, see . *********************************************************************/ /*global effect, effects, animate, animationTime, Effect, QEasingCurve */ +"use strict"; + var badBadWindowsEffect = { duration: animationTime(250), loadConfig: function () { - "use strict"; badBadWindowsEffect.duration = animationTime(250); }, offToCorners: function (showing) { - "use strict"; var stackingOrder = effects.stackingOrder; var screenGeo = effects.virtualScreenGeometry; var xOffset = screenGeo.width / 16; @@ -195,7 +195,6 @@ var badBadWindowsEffect = { } }, init: function () { - "use strict"; badBadWindowsEffect.loadConfig(); effects.showingDesktopChanged.connect(badBadWindowsEffect.offToCorners); }