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
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ jQuery.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
isObjectLiteral: function( obj ) {
|
isObjectLiteral: function( obj ) {
|
||||||
if ( toString.call(obj) !== "[object Object]" ) {
|
if ( toString.call(obj) !== "[object Object]" || typeof obj.nodeType === "number" ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue