Skip to content

Commit

Permalink
Merge pull request #682 from soumen-pradhan/bug/easing-linear-pure
Browse files Browse the repository at this point in the history
Change the Easing.Linear methods to pure function
  • Loading branch information
trusktr committed May 5, 2024
2 parents 66bc783 + b8e3af3 commit 3267276
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions dist/tween.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions dist/tween.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions dist/tween.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions dist/tween.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions src/Easing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}),

Expand Down

0 comments on commit 3267276

Please sign in to comment.