mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Always use core_push in jQuery.buildFragment
This commit is contained in:
parent
6d2ae92fe4
commit
58b4994f56
@ -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 ) ) {
|
||||||
nodes.push( context.createTextNode( elem ) );
|
core_push.call( nodes, context.createTextNode( elem ) );
|
||||||
|
|
||||||
// Convert html into DOM nodes
|
// Convert html into DOM nodes
|
||||||
} else {
|
} else {
|
||||||
@ -495,7 +495,7 @@ jQuery.extend({
|
|||||||
elem = tmp[ j ];
|
elem = tmp[ j ];
|
||||||
|
|
||||||
if ( rscriptType.test( elem.type || "" ) ) {
|
if ( rscriptType.test( elem.type || "" ) ) {
|
||||||
scripts.push( elem );
|
core_push.call( scripts, elem );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user