From 302f222df03d2c65f409b11b7fa65dba5400180f Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 24 Jul 2013 21:21:56 -0400 Subject: [PATCH] No need to remove if they ain't nuthin thar --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5