Merge pull request #70 from CartoDB/loop-by-default

Loop by default
This commit is contained in:
javi santana 2014-12-16 18:31:25 +01:00
commit 90de3db461

View File

@ -27,10 +27,11 @@ var cancelAnimationFrame = global.cancelAnimationFrame
this._t0 = +new Date();
this.callback = callback;
this._time = 0.0;
this.options = torque.extend({
animationDelay: 0,
maxDelta: 0.2,
loop: options.loop
loop: options.loop === undefined ? true : options.loop
}, this.options);
this.rescale();