]> source.dussan.org Git - jquery.git/commitdiff
No need to remove if they ain't nuthin thar
authorTimmy Willison <timmywillisn@gmail.com>
Thu, 25 Jul 2013 01:21:56 +0000 (21:21 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Thu, 25 Jul 2013 01:24:37 +0000 (21:24 -0400)
src/core.js

index 209fbc86a5a7349f9147364ab47dbb7d121f93de..2f45050e1723b802c8302ff59ad763bc3243b211 100644 (file)
@@ -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 );