mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Ajax: Use two-arg form of .slice() for old IE
Followup to a4b9bc57, #14773
This commit is contained in:
parent
80e3dfa6ba
commit
5911b3e087
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user