mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 03:03:50 +00:00
Merge pull request #1965 from Dogild/Timer
Fixed: CPTimer didn't allow a timeInterval < 0.1
This commit is contained in:
commit
b03e354dbf
1 file changed
+2
-2
@@ -114,7 +114,7 @@ var CPTimerMinTimeInterval = 0.1;
|
||||
|
||||
if (self)
|
||||
{
|
||||
_timeInterval = MAX(seconds, CPTimerMinTimeInterval);
|
||||
_timeInterval = (seconds <= 0) ? CPTimerMinTimeInterval : seconds;
|
||||
_invocation = anInvocation;
|
||||
_repeats = shouldRepeat;
|
||||
_isValid = YES;
|
||||
@@ -152,7 +152,7 @@ var CPTimerMinTimeInterval = 0.1;
|
||||
|
||||
if (self)
|
||||
{
|
||||
_timeInterval = MAX(seconds, CPTimerMinTimeInterval);
|
||||
_timeInterval = (seconds <= 0) ? CPTimerMinTimeInterval : seconds;
|
||||
_callback = aFunction;
|
||||
_repeats = shouldRepeat;
|
||||
_isValid = YES;
|
||||
|
||||
Reference in new issue
Block a user