mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Fix #817
This commit is contained in:
@ -50,7 +50,9 @@ export function setInterval(callback: Function, milliseconds = 0): number {
|
||||
var runnable = new java.lang.Runnable({
|
||||
run: () => {
|
||||
callback();
|
||||
handler.postDelayed(runnable, long(milliseconds));
|
||||
if (timeoutCallbacks[id]) {
|
||||
handler.postDelayed(runnable, long(milliseconds));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user