[TIMOB-10101] Android: clearTimeout and clearInterval accept any timer type.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, parity |
Reporter | Josh Roesslein |
Assignee | Unknown |
Created | 2012-07-23T16:59:07.000+0000 |
Updated | 2018-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?
No comments