From 5911b3e08798d23c408fab4d0fdf858650ad6b32 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 4 Mar 2014 21:44:57 -0500 Subject: [PATCH] Ajax: Use two-arg form of .slice() for old IE Followup to a4b9bc57, #14773 --- src/ajax/load.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }