Skip to content

Commit e371d3f

Browse files
Arknijzaefferer
authored andcommitted
Core: IE8 compatibility changed .indexOf to $.inArray
Closes jquery-validation#1451
1 parent c5ac242 commit e371d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ $.extend( $.validator, {
278278
38, 39, 40, 45, 144, 225
279279
];
280280

281-
if ( event.which === 9 && this.elementValue( element ) === "" || excludedKeys.indexOf( event.keyCode ) !== -1 ) {
281+
if ( event.which === 9 && this.elementValue( element ) === "" || $.inArray( event.keyCode, excludedKeys ) !== -1 ) {
282282
return;
283283
} else if ( element.name in this.submitted || element === this.lastElement ) {
284284
this.element( element );

0 commit comments

Comments
 (0)