Skip to content

Commit

Permalink
Mask: fix bug in visual test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Shepherd committed Oct 15, 2012
1 parent dd0b0b6 commit 9d038dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/visual/mask/mask.html
Expand Up @@ -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;
}
},
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 9d038dd

Please sign in to comment.