Removed another log statement; fixed add(Array) for IE (IE reports form.elements.nodeName == "FORM")

This commit is contained in:
Jörn Zaefferer 2007-01-23 14:46:19 +00:00
parent 926e80b902
commit 9f93c7b3b8
2 changed files with 2 additions and 2 deletions

View 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)

View 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] )
);
},