From 2d3344fd044dc1784a9f64459ee56b5c883a645a Mon Sep 17 00:00:00 2001 From: Bradley Mclain Date: Thu, 1 Dec 2016 14:08:42 +1100 Subject: [PATCH] fix for #60 --- types/Float.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/Float.js b/types/Float.js index e934004..f7ea12b 100644 --- a/types/Float.js +++ b/types/Float.js @@ -148,7 +148,7 @@ prestans.types.Float.prototype.setValue = function(value) { //Check required var floatValue = parseFloat(value); - if(!this.required_ && (goog.isNull(value) || value.length == 0)) { + if(!this.required_ && (goog.isNull(value) || (goog.isString(value) && value.length == 0))) { this.value_ = null; return true; }