No need to remove if they ain't nuthin thar

This commit is contained in:
Timmy Willison 2013-07-24 21:21:56 -04:00
parent 353fe2a749
commit 755e46522d

View File

@ -518,7 +518,8 @@ jQuery.extend({
} }
parsed = jQuery.buildFragment( [ data ], context, scripts ); parsed = jQuery.buildFragment( [ data ], context, scripts );
if ( scripts ) {
if ( scripts && scripts.length ) {
jQuery( scripts ).remove(); jQuery( scripts ).remove();
} }
return jQuery.merge( [], parsed.childNodes ); return jQuery.merge( [], parsed.childNodes );