Commit ca49ef98 authored by Richard Gibson's avatar Richard Gibson

Ref gh-1117: Use native push for size and performance

parent 8e6c1ba9
...@@ -439,7 +439,7 @@ jQuery.extend({ ...@@ -439,7 +439,7 @@ jQuery.extend({
// Convert non-html into a text node // Convert non-html into a text node
} else if ( !rhtml.test( elem ) ) { } else if ( !rhtml.test( elem ) ) {
core_push.call( nodes, context.createTextNode( elem ) ); nodes.push( context.createTextNode( elem ) );
// Convert html into DOM nodes // Convert html into DOM nodes
} else { } else {
...@@ -495,7 +495,7 @@ jQuery.extend({ ...@@ -495,7 +495,7 @@ jQuery.extend({
j = 0; j = 0;
while ( (elem = tmp[ j++ ]) ) { while ( (elem = tmp[ j++ ]) ) {
if ( rscriptType.test( elem.type || "" ) ) { if ( rscriptType.test( elem.type || "" ) ) {
core_push.call( scripts, elem ); scripts.push( elem );
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment