aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-01-09 10:10:08 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-01-09 10:11:33 -0500
commitca49ef98d51e8a79ee70d5339a662dead5711165 (patch)
treec57b501c53edbd74fd8d61d4f911fee1821721f3 /src
parent8e6c1ba92faf830d40cafe7a4deb4ad5ab9045fe (diff)
downloadjquery-ca49ef98d51e8a79ee70d5339a662dead5711165.tar.gz
jquery-ca49ef98d51e8a79ee70d5339a662dead5711165.zip
Ref gh-1117: Use native push for size and performance
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js4
1 files 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 );
}
}
}