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:
jeresig 2009-12-02 14:59:19 -05:00
parent b8d0c0711f
commit ad4f28631a

View file

@ -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;
}