Use charAt instead of string indexing for oldIE's sake. Fixes #14356.

This commit is contained in:
Timmy Willison
2013-09-12 15:49:15 -05:00
parent c6b4230d5c
commit 53aa2e0c8b
2 changed files with 3 additions and 2 deletions

View File

@@ -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 );