diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-04 21:44:57 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-04 21:50:43 -0500 |
commit | 5911b3e08798d23c408fab4d0fdf858650ad6b32 (patch) | |
tree | a299d7705de2d26979f8ab128487e8226702f052 /src | |
parent | 80e3dfa6bac3340aafcc87e956e1c461ba570e68 (diff) | |
download | jquery-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.js | 2 |
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 ); } |