Avoid issues with Titanium, clearTimeout, and an undefined timer id.

Former-commit-id: 18813fcebbab5185164c236a647b0b6436d495ff
This commit is contained in:
John-David Dalton
2013-05-20 22:53:27 -07:00
parent 25a1d74627
commit 32f0ebbe61
2 changed files with 8 additions and 5 deletions

View File

@@ -2210,7 +2210,7 @@
' var args,',
' result,',
' thisArg,',
' timeoutId;',
' timeoutId = null;',
'',
' function delayed() {',
' timeoutId = null;',
@@ -2567,8 +2567,8 @@
' var args,',
' result,',
' thisArg,',
' timeoutId,',
' lastCalled = 0;',
' lastCalled = 0,',
' timeoutId = null;',
'',
' function trailingCall() {',
' lastCalled = new Date;',