From ad4f28631ac888e7ac8384b4b713012fd1ca2dca Mon Sep 17 00:00:00 2001 From: jeresig Date: Wed, 2 Dec 2009 14:59:19 -0500 Subject: [PATCH] Make sure that a DOM node isn't getting passed through (as is the case in IE, it has a toString of [object Object]. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 5da31e6..e2d3b60 100644 --- a/src/core.js +++ b/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; } -- 1.7.10.4