diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-03 21:37:56 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-04 20:43:14 -0500 |
commit | 3a68c114e3a30af86dc261c9d62ce2ae4144d420 (patch) | |
tree | 7396bae6fbd77baf49c89676947d585650490567 /src | |
parent | 10efa1f5b44046aab6bcc8423322a41923faa290 (diff) | |
download | jquery-3a68c114e3a30af86dc261c9d62ce2ae4144d420.tar.gz jquery-3a68c114e3a30af86dc261c9d62ce2ae4144d420.zip |
Ajax: .load() should trim its selector
Fixes #14773
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax/load.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js index 3c345a027..bff25b1a4 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 = url.slice( off ); + selector = jQuery.trim( url.slice( off ) ); url = url.slice( 0, off ); } |