Disable new timer stuff for CommonJS.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-05-04 10:09:16 -07:00
1 parent efe4d5f339
commit 2c23c0ffa7
1 file changed
+4
+4
View File
@@ -269,11 +269,13 @@ var CPRunLoopLastNativeRunLoop = 0;
aTimer._lastNativeRunLoopsForModes[aMode] = CPRunLoopLastNativeRunLoop;
#if PLATFORM(DOM)
if (!_runLoopInsuranceTimer)
_runLoopInsuranceTimer = window.setNativeTimeout(function()
{
[self limitDateForMode:CPDefaultRunLoopMode];
}, 0);
#endif
}
/*!
@@ -287,11 +289,13 @@ var CPRunLoopLastNativeRunLoop = 0;
_runLoopLock = YES;
#if PLATFORM(DOM)
if (_runLoopInsuranceTimer)
{
window.clearNativeTimeout(_runLoopInsuranceTimer);
_runLoopInsuranceTimer = nil;
}
#endif
var now = _effectiveDate ? [_effectiveDate laterDate:[CPDate date]] : [CPDate date],
nextFireDate = nil,