Removed another log statement; fixed add(Array) for IE (IE reports form.elements...
[jquery.git] / src / jquery / jquery.js
index 19ee7c1..d9f5b8a 100644 (file)
@@ -931,7 +931,7 @@ jQuery.fn = jQuery.prototype = {
 
                        jQuery.grep(this, function(a) {
                                return ( t.constructor == Array || t.jquery )
-                                       ? console.log("t: %o a: %o", t, a) | jQuery.inArray( a, t ) < 0
+                                       ? jQuery.inArray( a, t ) < 0
                                        : a != t;
                        })
                );
@@ -986,7 +986,7 @@ jQuery.fn = jQuery.prototype = {
                        this.get(),
                        t.constructor == String ?
                                jQuery(t).get() :
-                               t.length != undefined && !t.nodeName ?
+                               t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ?
                                        t : [t] )
                );
        },