ソースを参照

Fixed Lessthan inclusive option

Johan Rönn 11 年 前
コミット
d2fafaa8b3
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/js/validator/lessThan.js

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

@@ -34,7 +34,7 @@
                 return true;
             }
             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));