Commit 9f93c7b3 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Removed another log statement; fixed add(Array) for IE (IE reports...

Removed another log statement; fixed add(Array) for IE (IE reports form.elements.nodeName == "FORM")
parent 926e80b9
......@@ -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)
......
......@@ -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] )
);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment