Commit ad4f2863 authored by jeresig's avatar jeresig

Make sure that a DOM node isn't getting passed through (as is the case in IE,...

Make sure that a DOM node isn't getting passed through (as is the case in IE, it has a toString of [object Object].
parent b8d0c071
...@@ -315,7 +315,7 @@ jQuery.extend({ ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment