Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
inorganik committed Jul 7, 2022
1 parent c8f9f64 commit 6c607d9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
'no-prototype-builtins': 'off',
},
env: {
browser: true
browser: true,
es6: true,
}
};
2 changes: 2 additions & 0 deletions dist/countUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ var CountUp = /** @class */ (function () {
var end = (this.finalEndVal) ? this.finalEndVal : this.endVal;
this.countDown = (this.startVal > end);
var animateAmount = end - this.startVal;
console.log('end', end, 'animate amount', animateAmount);
console.log('abs animate amount', Math.abs(animateAmount));
if (Math.abs(animateAmount) > this.options.smartEasingThreshold) {
this.finalEndVal = end;
var up = (this.countDown) ? 1 : -1;
Expand Down
2 changes: 1 addition & 1 deletion dist/countUp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/countUp.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@
var end = (this.finalEndVal) ? this.finalEndVal : this.endVal;
this.countDown = (this.startVal > end);
var animateAmount = end - this.startVal;
console.log('end', end, 'animate amount', animateAmount);
console.log('abs animate amount', Math.abs(animateAmount));
if (Math.abs(animateAmount) > this.options.smartEasingThreshold) {
this.finalEndVal = end;
var up = (this.countDown) ? 1 : -1;
Expand Down
Loading

0 comments on commit 6c607d9

Please sign in to comment.