Ajax: Use two-arg form of .slice() for old IE

Followup to a4b9bc57, #14773
This commit is contained in:
Dave Methvin 2014-03-04 21:44:57 -05:00
parent 80e3dfa6ba
commit 5911b3e087

View File

@ -25,7 +25,7 @@ jQuery.fn.load = function( url, params, callback ) {
off = url.indexOf(" "); off = url.indexOf(" ");
if ( off >= 0 ) { if ( off >= 0 ) {
selector = jQuery.trim( url.slice( off ) ); selector = jQuery.trim( url.slice( off, url.length ) );
url = url.slice( 0, off ); url = url.slice( 0, off );
} }