Fixed: changed magic number to constant, add missing space after comma.

This commit is contained in:
Aparajita Fishman committed 2013-07-20 12:05:53 -04:00
1 parent 23d2a71649
commit e0af5d0573
1 file changed
+4 -2
+4 -2
View File
@@ -25,6 +25,8 @@
@import "CPObject.j"
@import "CPRunLoop.j"
var CPTimerMinTimeInterval = 0.1;
/*!
@class CPTimer
@ingroup foundation
@@ -112,7 +114,7 @@
if (self)
{
_timeInterval = MAX(seconds,0.1);
_timeInterval = MAX(seconds, CPTimerMinTimeInterval);
_invocation = anInvocation;
_repeats = shouldRepeat;
_isValid = YES;
@@ -150,7 +152,7 @@
if (self)
{
_timeInterval = MAX(seconds,0.1);
_timeInterval = MAX(seconds, CPTimerMinTimeInterval);
_callback = aFunction;
_repeats = shouldRepeat;
_isValid = YES;