Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1093] Android: setInterval continues after exiting the test

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-25T17:05:17.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, defect, setinterval
ReporterJeff Haynie
AssigneeNeeraj Gupta
Created2011-04-15T02:43:52.000+0000
Updated2017-03-03T06:07:50.000+0000

Description

seems to continue to run (from console logging) after you exit from the test.

Comments

  1. Todd 2011-04-15

    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.

  2. Ping Wang 2012-07-25

    Cannot reproduce.
  3. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source