]> 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:31:07 +0000 (21:31 -0400)
src/core.js

index 86b35a6f0364259d42b0bf7c8ce8970cf2cc73c0..55a0c25d32b3517e1754ad443edb89a1f5a1e061 100644 (file)
@@ -472,7 +472,7 @@ jQuery.extend({
 
                parsed = jQuery.buildFragment( [ data ], context, scripts );
 
-               if ( scripts ) {
+               if ( scripts && scripts.length ) {
                        jQuery( scripts ).remove();
                }