diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-07-24 21:21:56 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-07-24 21:24:37 -0400 |
commit | 755e46522d256d256cccc94161bef783bd15dc05 (patch) | |
tree | f7055d6acf8c4f3edf28207ce6ac269f23b8fc06 /src | |
parent | 353fe2a749c8643cbb2183d2a2013af722bd4824 (diff) | |
download | jquery-755e46522d256d256cccc94161bef783bd15dc05.tar.gz jquery-755e46522d256d256cccc94161bef783bd15dc05.zip |
No need to remove if they ain't nuthin thar
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 209fbc86a..2f45050e1 100644 --- a/src/core.js +++ b/src/core.js @@ -518,7 +518,8 @@ jQuery.extend({ } parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { + + if ( scripts && scripts.length ) { jQuery( scripts ).remove(); } return jQuery.merge( [], parsed.childNodes ); |