Permalink
Browse files

Mask: fix bug in visual test case

  • Loading branch information...
1 parent dd0b0b6 commit 9d038dd60b2fdda442cd4bbfe984e95b4353affe Zach Shepherd committed Oct 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/visual/mask/mask.html
View
4 tests/visual/mask/mask.html
@@ -28,7 +28,7 @@
definitions: {
hh: function( value ) {
value = parseInt( value, 10 );
- if ( value >= 1 || value <= 12 ) {
+ if ( value >= 1 && value <= 12 ) {
return ( value < 10 ? "0" : "" ) + value;
}
},
@@ -52,7 +52,7 @@
function sixty( value ) {
value = parseInt( value, 10 );
- if ( value >= 0 || value <= 59 ) {
+ if ( value >= 0 && value <= 59 ) {
return ( value < 10 ? "0" : "" ) + value;
}
}

0 comments on commit 9d038dd

Please sign in to comment.