[TIMOB-1093] Android: setInterval continues after exiting the test
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-07-25T17:05:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | Android |
Labels | android, defect, setinterval |
Reporter | Jeff Haynie |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:43:52.000+0000 |
Updated | 2017-03-03T06:07:50.000+0000 |
Description
seems to continue to run (from console logging) after you exit from the test.
I found a potential issue with setInterval and setTimeout, though it may related or operating as designed the documentation does not mention this caveat on usage
In simple app.js
1. use setInterval(testFunc,100) 2. in the testFunction just use Ti.API.info('interval fire'); to verify operation 3. create a heavywieght window by setting navBarHidden:true property and then open it.
You should see that the timer fires until the heavywieght opens, remove the navBarHidden property and the event continues to fire even after the open.
Not sure if this is a context issue or what but seems like it should work both with heavywieght and non-heavywieght windows since app.js continues to execute other in line code just fine after the open.
Cannot reproduce.
Closing issue due to time passed and irrelevance of the ticket.