Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26541] Android: setTimeout and setInterval do not support calls without interval specified

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-11-26T16:34:24.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.0.0
ComponentsAndroid
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2018-11-09T18:24:20.000+0000
Updated2018-11-26T16:34:44.000+0000

Description

According to the spec for setTimeout and setInterval for the web, the delay/interval value is optional and should default to 0 (or ASAP). https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval The recent fixes on iOS around timers exposed the lack of support there, which was then fixed. Android also does not yet support omitting the delay argument. To hew to the spec as much as possible we'll create unspecified delays or delays of 0 or less as being 1ms delays.

Comments

  1. Christopher Williams 2018-11-09

    https://github.com/appcelerator/titanium_mobile/pull/10451
  2. Lokesh Choudhary 2018-11-16

    FR Passed. Waiting for CR to merge.

JSON Source