From: Oleg Date: Mon, 7 Jan 2013 20:16:36 +0000 (+0400) Subject: Always use core_push in jQuery.buildFragment X-Git-Tag: 2.0.0b1~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58b4994f5634b839cb6cafa1457da7eb5c5a9c7c;p=jquery.git Always use core_push in jQuery.buildFragment --- diff --git a/src/manipulation.js b/src/manipulation.js index 3be2b3451..3ddd56c3a 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 ) ) { - nodes.push( context.createTextNode( elem ) ); + core_push.call( nodes, context.createTextNode( elem ) ); // Convert html into DOM nodes } else { @@ -495,7 +495,7 @@ jQuery.extend({ elem = tmp[ j ]; if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); + core_push.call( scripts, elem ); } } }