Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

Commit

Permalink
fix for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
BradMclain committed Dec 1, 2016
1 parent 559d296 commit 2d3344f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/Float.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2d3344f

Please sign in to comment.