diff --git a/effects/scale/package/contents/code/main.js b/effects/scale/package/contents/code/main.js --- a/effects/scale/package/contents/code/main.js +++ b/effects/scale/package/contents/code/main.js @@ -18,6 +18,8 @@ along with this program. If not, see . *********************************************************************/ +"use strict"; + var blacklist = [ // The logout screen has to be animated only by the logout effect. "ksmserver ksmserver", @@ -31,7 +33,6 @@ var scaleEffect = { loadConfig: function (window) { - "use strict"; var defaultDuration = 160; var duration = effect.readConfig("Duration", defaultDuration) || defaultDuration; scaleEffect.duration = animationTime(duration); @@ -41,7 +42,6 @@ scaleEffect.outOpacity = effect.readConfig("OutOpacity", 0.0); }, isScaleWindow: function (window) { - "use strict"; // We don't want to animate most of plasmashell's windows, yet, some // of them we want to, for example, Task Manager Settings window. // The problem is that all those window share single window class. @@ -75,17 +75,14 @@ return window.normalWindow || window.dialog; }, setupForcedRoles: function (window) { - "use strict"; window.setData(Effect.WindowForceBackgroundContrastRole, true); window.setData(Effect.WindowForceBlurRole, true); }, cleanupForcedRoles: function (window) { - "use strict"; window.setData(Effect.WindowForceBackgroundContrastRole, null); window.setData(Effect.WindowForceBlurRole, null); }, slotWindowAdded: function (window) { - "use strict"; if (effects.hasActiveFullScreenEffect) { return; } @@ -116,7 +113,6 @@ }); }, slotWindowClosed: function (window) { - "use strict"; if (effects.hasActiveFullScreenEffect) { return; } @@ -151,7 +147,6 @@ }); }, slotWindowDataChanged: function (window, role) { - "use strict"; if (role == Effect.WindowAddedGrabRole) { if (window.scaleInAnimation && effect.isGrabbed(window, role)) { cancel(window.scaleInAnimation); @@ -167,7 +162,6 @@ } }, init: function () { - "use strict"; scaleEffect.loadConfig(); effect.configChanged.connect(scaleEffect.loadConfig);