Ajax: .load() should trim its selector

Fixes #14773
(cherry picked from commit 3a68c114e3)

Conflicts:
	src/ajax/load.js
This commit is contained in:
Dave Methvin
2014-03-03 21:37:56 -05:00
parent c93b174b92
commit 48837b92b0
3 changed files with 10 additions and 1 deletions

View File

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