Permalink
Browse files

Minor improvements to the ‘minimum’ attribute

  • Loading branch information...
Baggz committed Mar 8, 2012
1 parent 0fcb682 commit 48e12d2472b3114b0414f7a49e74a2762b75fcc7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/engines/json/attributes.js
@@ -177,7 +177,7 @@ Validation.prototype.attributes = {
*/
minimum: function minimumConstructor() {
return function minimum(property, propertyValue, attributeValue, propertyAttributes, callback) {
- if (typeof propertyValue === 'number') {
+ if (isNumber(propertyValue)) {
var condition = (propertyAttributes.exclusiveMinimum) ? propertyValue > attributeValue : propertyValue >= attributeValue;
return (condition) ? callback() : callback(true);
} else {

0 comments on commit 48e12d2

Please sign in to comment.