Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26541

Android: setTimeout and setInterval do not support calls without interval specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: Release 8.0.0
    • Component/s: Android
    • Labels:
      None
    • Sprint:
      2018 Sprint 23, 2018 Sprint 24

      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.

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              cwilliams Christopher Williams
              Reviewer:
              Joshua Quick
              Tester:
              Lokesh Choudhary
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6691
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code