Commit 755e4652 authored by Timmy Willison's avatar Timmy Willison

No need to remove if they ain't nuthin thar

parent 353fe2a7
...@@ -518,7 +518,8 @@ jQuery.extend({ ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment