From 14e45d55cf1f58427db249a20bd0295046813fc4 Mon Sep 17 00:00:00 2001 From: soumen-pradhan Date: Thu, 2 May 2024 15:33:36 +0530 Subject: [PATCH] change the method to pure function --- dist/tween.amd.js | 6 +++--- dist/tween.cjs | 6 +++--- dist/tween.esm.js | 6 +++--- dist/tween.umd.js | 6 +++--- src/Easing.ts | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/tween.amd.js b/dist/tween.amd.js index 4b43ab07..c7dd31b4 100644 --- a/dist/tween.amd.js +++ b/dist/tween.amd.js @@ -9,13 +9,13 @@ define(['exports'], (function (exports) { 'use strict'; return amount; }, In: function (amount) { - return this.None(amount); + return amount; }, Out: function (amount) { - return this.None(amount); + return amount; }, InOut: function (amount) { - return this.None(amount); + return amount; }, }), Quadratic: Object.freeze({ diff --git a/dist/tween.cjs b/dist/tween.cjs index 1470fcbc..8de5bd68 100644 --- a/dist/tween.cjs +++ b/dist/tween.cjs @@ -11,13 +11,13 @@ var Easing = Object.freeze({ return amount; }, In: function (amount) { - return this.None(amount); + return amount; }, Out: function (amount) { - return this.None(amount); + return amount; }, InOut: function (amount) { - return this.None(amount); + return amount; }, }), Quadratic: Object.freeze({ diff --git a/dist/tween.esm.js b/dist/tween.esm.js index ba359a49..46062a54 100644 --- a/dist/tween.esm.js +++ b/dist/tween.esm.js @@ -7,13 +7,13 @@ var Easing = Object.freeze({ return amount; }, In: function (amount) { - return this.None(amount); + return amount; }, Out: function (amount) { - return this.None(amount); + return amount; }, InOut: function (amount) { - return this.None(amount); + return amount; }, }), Quadratic: Object.freeze({ diff --git a/dist/tween.umd.js b/dist/tween.umd.js index 82c7babb..e49b1617 100644 --- a/dist/tween.umd.js +++ b/dist/tween.umd.js @@ -13,13 +13,13 @@ return amount; }, In: function (amount) { - return this.None(amount); + return amount; }, Out: function (amount) { - return this.None(amount); + return amount; }, InOut: function (amount) { - return this.None(amount); + return amount; }, }), Quadratic: Object.freeze({ diff --git a/src/Easing.ts b/src/Easing.ts index 0627389b..e9ed93bc 100644 --- a/src/Easing.ts +++ b/src/Easing.ts @@ -16,13 +16,13 @@ export const Easing = Object.freeze({ return amount }, In(amount: number): number { - return this.None(amount) + return amount }, Out(amount: number): number { - return this.None(amount) + return amount }, InOut(amount: number): number { - return this.None(amount) + return amount }, }),