Commit 6ca1c310 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/maximize] Put "use strict" at the beginning of the script

parent 0155ee1a
......@@ -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 <http://www.gnu.org/licenses/>.
*********************************************************************/
/*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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment