Skip to content

Commit

Permalink
Added travis CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegreatrex committed Oct 5, 2013
1 parent 0ef67ad commit 48e486b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"
2 changes: 1 addition & 1 deletion Src/knockout.validation.js
Expand Up @@ -587,7 +587,7 @@

// in order to handle steps of .1 & .01 etc.. Modulus won't work
// if the value is a decimal, so we have to correct for that
if (utils.isEmptyVal(val) || step == 'any') return true;
if (utils.isEmptyVal(val) || step === 'any') { return true; }
var dif = (val * 100) % (step * 100);
return Math.abs(dif) < 0.00001 || Math.abs(1 - dif) < 0.00001;
},
Expand Down

0 comments on commit 48e486b

Please sign in to comment.