Added a fix, and tests, for appending empty sets of elements/strings.
[jquery.git] / src / jquery / jquery.js
index b010387..83711de 100644 (file)
@@ -1443,6 +1443,9 @@ jQuery.extend({
                                
                                arg = div.childNodes;
                        }
+
+                       if ( arg.length === 0 )
+                               continue;
                        
                        if ( arg[0] == undefined )
                                r.push( arg );