mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 03:54:56 -05:00
Use charAt instead of string indexing for oldIE's sake. Fixes #14356.
This commit is contained in:
@@ -78,7 +78,7 @@ function addToPrefiltersOrTransports( structure ) {
|
||||
// For each dataType in the dataTypeExpression
|
||||
while ( (dataType = dataTypes[i++]) ) {
|
||||
// Prepend if requested
|
||||
if ( dataType[0] === "+" ) {
|
||||
if ( dataType.charAt( 0 ) === "+" ) {
|
||||
dataType = dataType.slice( 1 ) || "*";
|
||||
(structure[ dataType ] = structure[ dataType ] || []).unshift( func );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user