]> source.dussan.org Git - jquery.git/commitdiff
Always use core_push in jQuery.buildFragment
authorOleg <markelog@gmail.com>
Mon, 7 Jan 2013 20:16:36 +0000 (00:16 +0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 8 Jan 2013 02:41:21 +0000 (02:41 +0000)
src/manipulation.js

index 3be2b3451882f6bacc2902d0b4fa2853d4d05ffd..3ddd56c3a3d76114f576965d842c3cfcfce64b64 100644 (file)
@@ -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 ) );
 
                                // 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 );
                                        }
                                }
                        }