Removed another log statement; fixed add(Array) for IE (IE reports form.elements...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 23 Jan 2007 14:46:19 +0000 (14:46 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 23 Jan 2007 14:46:19 +0000 (14:46 +0000)
src/event/eventTest.js
src/jquery/jquery.js

index d621735..01b97c1 100644 (file)
@@ -4,7 +4,7 @@ test("toggle(Function, Function) - add toggle event and fake a few clicks", func
        expect(1);
        var count = 0,
                fn1 = function(e) { count++; },
-               fn2 = function(e) { count--; console.debug("fn"); },
+               fn2 = function(e) { count--; },
                preventDefault = function(e) { e.preventDefault() },
                link = $('#mark');
        if($.browser.msie)
index 2c494d1..d9f5b8a 100644 (file)
@@ -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] )
                );
        },