mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-16 03:30:42 +00:00
Fixed: changed magic number to constant, add missing space after comma.
This commit is contained in:
1 parent
23d2a71649
commit
e0af5d0573
1 file changed
+4
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user