aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-01-23 14:46:19 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-01-23 14:46:19 +0000
commit9f93c7b3b858c4491e1d2aa7a680b9b1dd29b17c (patch)
tree8a18348efa7e614669b282a50421cea0556ba900 /src
parent926e80b90226d176710e092bbfdcfd7b9f06389b (diff)
downloadjquery-9f93c7b3b858c4491e1d2aa7a680b9b1dd29b17c.tar.gz
jquery-9f93c7b3b858c4491e1d2aa7a680b9b1dd29b17c.zip
Removed another log statement; fixed add(Array) for IE (IE reports form.elements.nodeName == "FORM")
Diffstat (limited to 'src')
-rw-r--r--src/event/eventTest.js2
-rw-r--r--src/jquery/jquery.js2
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] )
);
},