sole/tween.js — Issue #22: Problem with autostop (seems to be a scope issue)
Author: jacomyal
Created: 2011-11-24 15:54:52+00:00
State: open

Hi,

I just tried Tween.js, and used ```TWEEN.setAutostart(true)```, and it killed all my following ```jQuery.ajax``` calls.

I took a look at the sources, and it looks like the ```this.stop()``` call in ```TWEEN.update``` ([line 108](https://github.com/sole/tween.js/blob/master/src/Tween.js#L108)) does actually not call ```TWEEN.stop()```, but ```window.stop()``` (which kills the loading processes), since the method is called through ```window.setInterval``` ([line 30](https://github.com/sole/tween.js/blob/master/src/Tween.js#L30)).

Regards,

Alexis