Rename class usage to match its definition
This commit is contained in:
parent
b6169fb31a
commit
2bbf0576eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user