Skip to content

Commit

Permalink
Use new helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Oct 21, 2018
1 parent bd27842 commit 24ac870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/core.element.js
Expand Up @@ -42,7 +42,7 @@ function interpolate(start, view, model, ease) {
continue;
}
}
} else if ((type === 'number' || target instanceof Number) && isFinite(origin) && isFinite(target)) {
} else if (helpers.isFinite(origin) && helpers.isFinite(target)) {
view[key] = origin + (target - origin) * ease;
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/plugin.filler.js
Expand Up @@ -128,7 +128,7 @@ function computeBoundary(source) {
return target;
}

if ((typeof target === 'number' || target instanceof Number) && isFinite(target)) {
if (helpers.isFinite(target)) {
horizontal = scale.isHorizontal();
return {
x: horizontal ? target : null,
Expand Down

0 comments on commit 24ac870

Please sign in to comment.