]> source.dussan.org Git - jquery.git/commitdiff
fix Safari test failures
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 19 Nov 2012 22:17:48 +0000 (17:17 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 19 Nov 2012 22:17:48 +0000 (17:17 -0500)
src/manipulation.js

index f9e85c9c57a59c48c70057c38133bb7a491f9d2e..c1097b20c9f3ac6bbb464da16b68e6f9f094a1b9 100644 (file)
@@ -717,7 +717,7 @@ jQuery.extend({
                for ( i = 0; (elem = elems[i]) != null; i++ ) {
                        if ( elem || elem === 0 ) {
                                // Add nodes directly
-                               if ( typeof elem === "object" ) {
+                               if ( jQuery.type( elem ) === "object" ) {
                                        jQuery.merge( ret, elem.nodeType ? [ elem ] : elem );
 
                                // Convert non-html into a text node