Skip to content

Commit

Permalink
Fix Knockout-Contrib#617 - isEmptyVal doesn't always return a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernandesjunio authored and crissdev committed Oct 9, 2019
1 parent 2a4d8ed commit 85c2220
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions dist/knockout.validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ kv.configuration = configuration;
return o !== null && typeof o === 'object';
},
isNumber: function(o) {
return !isNaN(o);
return !isNaN(o);
},
isObservableArray: function(instance) {
return !!instance &&
Expand Down Expand Up @@ -172,6 +172,7 @@ kv.configuration = configuration;
if (val === "") {
return true;
}
return false;
},
getOriginalElementTitle: function (element) {
var savedOriginalTitle = kv.utils.getAttribute(element, 'data-orig-title'),
Expand All @@ -196,7 +197,8 @@ kv.configuration = configuration;
}
}
};
}());;var api = (function () {
}());
;var api = (function () {

var isInitialized = 0,
configuration = kv.configuration,
Expand Down
2 changes: 1 addition & 1 deletion dist/knockout.validation.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 85c2220

Please sign in to comment.