From: Richard Gibson Date: Wed, 9 Jan 2013 15:10:08 +0000 (-0500) Subject: Ref gh-1117: Use native push for size and performance X-Git-Tag: 2.0.0b1~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca49ef98d51e8a79ee70d5339a662dead5711165;p=jquery.git Ref gh-1117: Use native push for size and performance --- 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 ); } } }