From ca49ef98d51e8a79ee70d5339a662dead5711165 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 9 Jan 2013 10:10:08 -0500 Subject: [PATCH] Ref gh-1117: Use native push for size and performance --- src/manipulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manipulation.js b/src/manipulation.js index 5b5d8aec4..66aa1984d 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -439,7 +439,7 @@ jQuery.extend({ // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { - core_push.call( nodes, context.createTextNode( elem ) ); + nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { @@ -495,7 +495,7 @@ jQuery.extend({ j = 0; while ( (elem = tmp[ j++ ]) ) { if ( rscriptType.test( elem.type || "" ) ) { - core_push.call( scripts, elem ); + scripts.push( elem ); } } } -- 2.39.5