ericmbarnard/Knockout-Validation — Issue #11: 0 as number should be truthy
Author: iabdulin
Created: 2012-01-26 22:10:08+00:00
State: open

this:

required && val && (val+'').length > 0

returns false if val == 0

but sometimes 0 is a normal value of the form
so we should check this case:

if (val == 0) val = val + '' ;