Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26184] iOS: Timer functions can not be re-assigned

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-08-24T17:22:41.000+0000
Affected Version/sRelease 7.2.0
Fix Version/sRelease 7.5.0
ComponentsiOS
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2018-07-05T13:42:27.000+0000
Updated2018-10-22T11:48:09.000+0000

Description

The callbacks for timing function like setTimeout or setInterval are bound with the readonly flag and can not be reassigned. This is contradictory to other JS environments like the Web or Node where this is very much possible.

Comments

  1. Jan Vennemann 2018-07-05

    PR: https://github.com/appcelerator/titanium_mobile/pull/10155
  2. Samir Mohammed 2018-10-22

    *Closing ticket.* Verified fix in SDK version 7.5.0.v20181018133006. Timing functions like setTimeout or setInterval are now set as writable. *Test Environment*
       APPC Studio: 5.1.0.201808080937
       iPhone 6 Sim (iOS 12)
       APPC CLI: 7.0.6
       Operating System Name: Mac OS Mojave
       Operating System Version: 10.14
       Node.js Version: 8.9.1
       Xcode 10.0

JSON Source