Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10101] Android: clearTimeout and clearInterval accept any timer type.

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, parity
ReporterJosh Roesslein
AssigneeUnknown
Created2012-07-23T16:59:07.000+0000
Updated2018-02-28T20:04:07.000+0000

Description

Android's clearInterval and clearTimeout both accept interval and timeout timers. Example:
var timeout = setTimeout(function() { }, 1000);
var interval = setInterval(function() { }, 1000);

// All of these clear<Type>() calls work on Android.
clearTimeout(interval);
clearTimeout(timeout);

clearInterval(interval);
clearInterval(timeout);
Should define the correct behavior for all platforms (do we allow any timer type?). If we don't allow canceling any timer type, how should we error out?

Comments

No comments

JSON Source