wMinor fixes in default filter (ignore 0 and '')

stable
David Barragán Merino 2014-06-25 12:53:03 +02:00
parent f80369bfb8
commit 1c6006245d
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
defaultFilter = ->
return (value, defaultValue) ->
if not value
if value in [null, undefined]
return defaultValue
return value