[TIMOB-525] clearTimeout triggers the call instead of just clearing
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:53:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | iOS |
| Labels | mobile, settimeout |
| Reporter | Jae Hess |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:31:00.000+0000 |
| Updated | 2011-04-17T01:53:23.000+0000 |
Here is a reproducible http://gist.github.com/335391">test case.
Make it your app.js and run it.
How to reproduce:
I realize this could have been a simpler test, but I knew this would reproduce the problem, since this is how I ran into it in the first place.
Here's a stupidly simple broken test case:
Here's a generalized workaround I came up with:
(from [3f94bd90743f2c323216909fe50a016a16ea6dcf]) Closes #525: Timers now stop before invocation if cancelled. http://github.com/appcelerator/titanium_mobile/commit/3f94bd90743f2c323216909fe50a016a16ea6dcf"> http://github.com/appcelerator/titanium_mobile/commit/3f94bd90743f2...