mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removed another log statement; fixed add(Array) for IE (IE reports form.elements.nodeName == "FORM")
This commit is contained in:
parent
926e80b902
commit
9f93c7b3b8
@ -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)
|
||||
|
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -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] )
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user