aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-03-04 21:44:57 -0500
committerDave Methvin <dave.methvin@gmail.com>2014-03-04 21:50:43 -0500
commit5911b3e08798d23c408fab4d0fdf858650ad6b32 (patch)
treea299d7705de2d26979f8ab128487e8226702f052 /src
parent80e3dfa6bac3340aafcc87e956e1c461ba570e68 (diff)
downloadjquery-5911b3e08798d23c408fab4d0fdf858650ad6b32.tar.gz
jquery-5911b3e08798d23c408fab4d0fdf858650ad6b32.zip
Ajax: Use two-arg form of .slice() for old IE
Followup to a4b9bc57, #14773
Diffstat (limited to 'src')
-rw-r--r--src/ajax/load.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js
index 337064673..24ca95e99 100644
--- a/src/ajax/load.js
+++ b/src/ajax/load.js
@@ -25,7 +25,7 @@ jQuery.fn.load = function( url, params, callback ) {
off = url.indexOf(" ");
if ( off >= 0 ) {
- selector = jQuery.trim( url.slice( off ) );
+ selector = jQuery.trim( url.slice( off, url.length ) );
url = url.slice( 0, off );
}