removed uneccesary frame update request
This commit is contained in:
parent
d5e8007dce
commit
fa8a9bbc2b
8
dist/torque.full.js
vendored
8
dist/torque.full.js
vendored
File diff suppressed because one or more lines are too long
3
dist/torque.full.uncompressed.js
vendored
3
dist/torque.full.uncompressed.js
vendored
@ -123,9 +123,6 @@ var cancelAnimationFrame = global.cancelAnimationFrame
|
|||||||
if(!this.options.loop){
|
if(!this.options.loop){
|
||||||
// set time to max time
|
// set time to max time
|
||||||
this.time(this.options.animationDuration);
|
this.time(this.options.animationDuration);
|
||||||
// go to final frame (callback to nothing)
|
|
||||||
requestAnimationFrame(function(){});
|
|
||||||
// pause at final frame
|
|
||||||
this.pause();
|
this.pause();
|
||||||
} else {
|
} else {
|
||||||
this._time = 0;
|
this._time = 0;
|
||||||
|
4
dist/torque.js
vendored
4
dist/torque.js
vendored
File diff suppressed because one or more lines are too long
3
dist/torque.uncompressed.js
vendored
3
dist/torque.uncompressed.js
vendored
@ -123,9 +123,6 @@ var cancelAnimationFrame = global.cancelAnimationFrame
|
|||||||
if(!this.options.loop){
|
if(!this.options.loop){
|
||||||
// set time to max time
|
// set time to max time
|
||||||
this.time(this.options.animationDuration);
|
this.time(this.options.animationDuration);
|
||||||
// go to final frame (callback to nothing)
|
|
||||||
requestAnimationFrame(function(){});
|
|
||||||
// pause at final frame
|
|
||||||
this.pause();
|
this.pause();
|
||||||
} else {
|
} else {
|
||||||
this._time = 0;
|
this._time = 0;
|
||||||
|
@ -121,9 +121,6 @@ var cancelAnimationFrame = global.cancelAnimationFrame
|
|||||||
if(!this.options.loop){
|
if(!this.options.loop){
|
||||||
// set time to max time
|
// set time to max time
|
||||||
this.time(this.options.animationDuration);
|
this.time(this.options.animationDuration);
|
||||||
// go to final frame (callback to nothing)
|
|
||||||
requestAnimationFrame(function(){});
|
|
||||||
// pause at final frame
|
|
||||||
this.pause();
|
this.pause();
|
||||||
} else {
|
} else {
|
||||||
this._time = 0;
|
this._time = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user