Flasher frequency can be == 0
This commit is contained in:
parent
5c882d6c36
commit
281c76205c
@ -227,7 +227,7 @@ static JSBool FlasherSetProperty(JSContext *context, JSObject *this, jsid propID
|
|||||||
case kFlasher_frequency:
|
case kFlasher_frequency:
|
||||||
if (JS_ValueToNumber(context, *value, &fValue))
|
if (JS_ValueToNumber(context, *value, &fValue))
|
||||||
{
|
{
|
||||||
if (fValue > 0.0)
|
if (fValue >= 0.0)
|
||||||
{
|
{
|
||||||
[entity setFrequency:fValue];
|
[entity setFrequency:fValue];
|
||||||
return YES;
|
return YES;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user