Skip to content
Permalink
Browse files

Make sure that a DOM node isn't getting passed through (as is the cas…

…e in IE, it has a toString of [object Object].
  • Loading branch information
jeresig committed Dec 2, 2009
1 parent b8d0c07 commit ad4f28631ac888e7ac8384b4b713012fd1ca2dca
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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;
}

0 comments on commit ad4f286

Please sign in to comment.
You can’t perform that action at this time.