Core: IE8 compatibility changed .indexOf to $.inArray

Closes #1451
This commit is contained in:
Brahim Arkni
2015-04-07 15:29:59 +01:00
committed by Jörn Zaefferer
parent c5ac242eef
commit e371d3f72e

View File

@@ -278,7 +278,7 @@ $.extend( $.validator, {
38, 39, 40, 45, 144, 225
];
if ( event.which === 9 && this.elementValue( element ) === "" || excludedKeys.indexOf( event.keyCode ) !== -1 ) {
if ( event.which === 9 && this.elementValue( element ) === "" || $.inArray( event.keyCode, excludedKeys ) !== -1 ) {
return;
} else if ( element.name in this.submitted || element === this.lastElement ) {
this.element( element );