Flasher frequency can be == 0

This commit is contained in:
cim 2013-11-27 21:19:31 +00:00
parent 5c882d6c36
commit 281c76205c

View File

@ -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;