From 6ca1c310fe04d9c81967de4123f57f31b5d26b50 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 5 Nov 2018 11:48:56 +0200 Subject: [PATCH] [effects/maximize] Put "use strict" at the beginning of the script --- effects/maximize/package/contents/code/maximize.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/effects/maximize/package/contents/code/maximize.js b/effects/maximize/package/contents/code/maximize.js index 61547ee7cb..24f94ecf7b 100644 --- a/effects/maximize/package/contents/code/maximize.js +++ b/effects/maximize/package/contents/code/maximize.js @@ -16,15 +16,15 @@ 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 maximizeEffect = { duration: animationTime(250), loadConfig: function () { - "use strict"; maximizeEffect.duration = animationTime(250); }, maximizeChanged: function (window) { - "use strict"; if (!window.oldGeometry) { return; } @@ -77,7 +77,6 @@ var maximizeEffect = { window.setData(Effect.WindowForceBlurRole, null); }, geometryChange: function (window, oldGeometry) { - "use strict"; if (window.maximizeAnimation1) { if (window.geometry.width != window.oldGeometry.width || window.geometry.height != window.oldGeometry.height) { @@ -93,7 +92,6 @@ var maximizeEffect = { window.olderGeometry = oldGeometry; }, init: function () { - "use strict"; effect.configChanged.connect(maximizeEffect.loadConfig); effects.windowGeometryShapeChanged.connect(maximizeEffect.geometryChange); effects.windowMaximizedStateChanged.connect(maximizeEffect.maximizeChanged);