diff options
-rw-r--r-- | src/event/eventTest.js | 2 | ||||
-rw-r--r-- | src/jquery/jquery.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/event/eventTest.js b/src/event/eventTest.js index d62173549..01b97c1d7 100644 --- a/src/event/eventTest.js +++ b/src/event/eventTest.js @@ -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) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 2c494d115..d9f5b8a64 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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] ) ); }, |