mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Make sure that a DOM node isn't getting passed through (as is the case in IE, it has a toString of [object Object].
This commit is contained in:
parent
b8d0c0711f
commit
ad4f28631a
@ -315,7 +315,7 @@ jQuery.extend({
|
||||
},
|
||||
|
||||
isObjectLiteral: function( obj ) {
|
||||
if ( toString.call(obj) !== "[object Object]" ) {
|
||||
if ( toString.call(obj) !== "[object Object]" || typeof obj.nodeType === "number" ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user