mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 09:22:03 +00:00
Disable new timer stuff for CommonJS.
Reviewed by me.
This commit is contained in:
1 parent
efe4d5f339
commit
2c23c0ffa7
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user