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 a new issue