Merge pull request #1965 from Dogild/Timer

Fixed: CPTimer didn't allow a timeInterval < 0.1
This commit is contained in:
aparajita committed 2013-07-25 23:01:14 -07:00
commit b03e354dbf
1 file changed
+2 -2
+2 -2
View File
@@ -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;