From: Timmy Willison Date: Thu, 25 Jul 2013 01:21:56 +0000 (-0400) Subject: No need to remove if they ain't nuthin thar X-Git-Tag: 2.1.0-beta1~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=302f222df03d2c65f409b11b7fa65dba5400180f;p=jquery.git No need to remove if they ain't nuthin thar --- diff --git a/src/core.js b/src/core.js index 86b35a6f0..55a0c25d3 100644 --- a/src/core.js +++ b/src/core.js @@ -472,7 +472,7 @@ jQuery.extend({ parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { + if ( scripts && scripts.length ) { jQuery( scripts ).remove(); }