]> source.dussan.org Git - jquery.git/commitdiff
Ajax: Use two-arg form of .slice() for old IE
authorDave Methvin <dave.methvin@gmail.com>
Wed, 5 Mar 2014 02:44:57 +0000 (21:44 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 5 Mar 2014 02:50:43 +0000 (21:50 -0500)
Followup to a4b9bc57, #14773

src/ajax/load.js

index 3370646730d60a3b4b0e0f0fda2799ae6fa88a6b..24ca95e99d53f0b75f2573d3402d6227fb9cb4fd 100644 (file)
@@ -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 );
        }