Permalink
Browse files

Always use core_push in jQuery.buildFragment

  • Loading branch information...
1 parent d83f90e commit 430bd92063d58d11582d0c1f81e33314b9b8db96 @markelog committed Jan 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/manipulation.js
View
@@ -436,7 +436,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 {
@@ -492,7 +492,7 @@ jQuery.extend({
elem = tmp[ j ];
if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
+ core_push.call( scripts, elem );
}
}
}

0 comments on commit 430bd92

Please sign in to comment.