]> source.dussan.org Git - jquery.git/commitdiff
Ref gh-1117: Use native push for size and performance
authorRichard Gibson <richard.gibson@gmail.com>
Wed, 9 Jan 2013 15:10:08 +0000 (10:10 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Wed, 9 Jan 2013 15:11:33 +0000 (10:11 -0500)
src/manipulation.js

index 5b5d8aec4a7adcf69dd1456ec14b70d70f57618e..66aa1984d9943f94b01a96705a113d5ba445c910 100644 (file)
@@ -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 );
                                        }
                                }
                        }