Permalink
Browse files

Always use core_push in jQuery.buildFragment

  • Loading branch information...
markelog authored and dmethvin committed Jan 7, 2013
1 parent 6d2ae92 commit 58b4994f5634b839cb6cafa1457da7eb5c5a9c7c
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ) );

This comment has been minimized.

@gibson042

gibson042 Jan 9, 2013

Member

.call is slower, and both these lines are inside loops... were the changes for size reduction?


// 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 );
}
}
}

0 comments on commit 58b4994

Please sign in to comment.