From: Dave Methvin Date: Wed, 5 Mar 2014 02:44:57 +0000 (-0500) Subject: Ajax: Use two-arg form of .slice() for old IE X-Git-Tag: 1.11.1-beta1~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5911b3e08798d23c408fab4d0fdf858650ad6b32;p=jquery.git Ajax: Use two-arg form of .slice() for old IE Followup to a4b9bc57, #14773 --- 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 ); }