aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-09-12 15:49:15 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-09-12 15:49:53 -0500
commit53aa2e0c8baf047ca0375c52dfbf00eaede994a6 (patch)
tree9a327846ba259cb0263fc4df9c12be810785eda0 /src
parentc6b4230d5c6abb45a2f282bfd02b8b1325705d19 (diff)
downloadjquery-53aa2e0c8baf047ca0375c52dfbf00eaede994a6.tar.gz
jquery-53aa2e0c8baf047ca0375c52dfbf00eaede994a6.zip
Use charAt instead of string indexing for oldIE's sake. Fixes #14356.
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index cdd55a0a3..aa3bab348 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -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 );