Skip to content

Commit

Permalink
Merge pull request #5 from jonpreecems/master
Browse files Browse the repository at this point in the history
Fix undefined variable countTo
  • Loading branch information
pfitzpaddy authored Jan 9, 2017
2 parents 576214e + f7cfa4f commit fbef00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular-count-to.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ angular.module('ngCountTo', [])
if (step >= steps) {
$timeout.cancel(scope.timoutId);
num = ngCountTo;
e.textContent = scope.filter ? $filter(scope.filter)(ngCountTo, scope.params, scope.fractionSize) : Math.round(countTo);
e.textContent = scope.filter ? $filter(scope.filter)(ngCountTo, scope.params, scope.fractionSize) : Math.round(ngCountTo);
} else {
e.textContent = scope.filter ? $filter(scope.filter)(num, scope.params, scope.fractionSize) : Math.round(num);
tick();
Expand Down

0 comments on commit fbef00b

Please sign in to comment.