Skip to content

Commit

Permalink
remove es6 code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwei3-xy committed Oct 9, 2016
1 parent 0b54de7 commit c5c729a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/vue-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
numberType: function(value, input) {
var valid = false,
msg = '请输入数字';
if (isNaN(value)) return { valid, msg };
if (isNaN(value)) return { valid: valid, msg: msg };
var min = parseFloat(input.getAttribute('min'));
var max = parseFloat(input.getAttribute('max'));
min = isNaN(min) ? -Infinity : min;
Expand Down
2 changes: 1 addition & 1 deletion src/ruleset.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var ruleset = {
numberType: function(value, input) {
var valid = false,
msg = '请输入数字';
if (isNaN(value)) return { valid, msg };
if (isNaN(value)) return { valid: valid, msg: msg };
var min = parseFloat(input.getAttribute('min'));
var max = parseFloat(input.getAttribute('max'));
min = isNaN(min) ? -Infinity : min;
Expand Down

0 comments on commit c5c729a

Please sign in to comment.