Browse Source

Fixed Lessthan inclusive option

Johan Rönn 11 years ago
parent
commit
d2fafaa8b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/validator/lessThan.js

+ 1 - 1
src/js/validator/lessThan.js

@@ -34,7 +34,7 @@
                 return true;
                 return true;
             }
             }
             value = parseFloat(value);
             value = parseFloat(value);
-            return (options.inclusive === false) ? (value <= options.value) : (value < options.value);
+            return (options.inclusive === false || options.inclusive==undefined) ? (value <= options.value) : (value < options.value);
         }
         }
     };
     };
 }(window.jQuery));
 }(window.jQuery));