From 2bbf0576eb56f143d132354ba87fd8b092bb7177 Mon Sep 17 00:00:00 2001 From: Nicklas Gummesson Date: Wed, 25 Nov 2015 16:10:14 +0100 Subject: [PATCH] Rename class usage to match its definition --- lib/torque/animator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/torque/animator.js b/lib/torque/animator.js index 4f6b468..6d46ca3 100644 --- a/lib/torque/animator.js +++ b/lib/torque/animator.js @@ -1,5 +1,5 @@ var torque = require('./'); -var StepsRange = require('./animator-steps-range'); +var AnimatorStepsRange = require('./animator-steps-range'); var requestAnimationFrame = global.requestAnimationFrame || global.mozRequestAnimationFrame @@ -98,7 +98,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame steps: function(_) { this.options.steps = _; - this._defaultStepsRange = new StepsRange(0, _); + this._defaultStepsRange = new AnimatorStepsRange(0, _); return this.rescale(); }, @@ -109,7 +109,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame if (start < this._defaultStepsRange.start) throw new Error('start must be within default steps range'); if (end > this._defaultStepsRange.end) throw new Error('end must be within default steps range'); - this._customStepsRange = new StepsRange(start, end); + this._customStepsRange = new AnimatorStepsRange(start, end); this.options.onStepsRange && this.options.onStepsRange(); // Change current step if it's outside the new custom range