diff --git a/lib/torque/animator.js b/lib/torque/animator.js index aa603fd..df3160b 100644 --- a/lib/torque/animator.js +++ b/lib/torque/animator.js @@ -27,6 +27,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame this._t0 = +new Date(); this.callback = callback; this._time = 0.0; + this.itemsReady = false; this.options = torque.extend({ animationDelay: 0, @@ -42,9 +43,11 @@ var cancelAnimationFrame = global.cancelAnimationFrame Animator.prototype = { start: function() { - this.running = true; - requestAnimationFrame(this._tick); - this.options.onStart && this.options.onStart(); + if(this.itemsReady){ + this.running = true; + requestAnimationFrame(this._tick); + this.options.onStart && this.options.onStart(); + } }, isRunning: function() {