]> source.dussan.org Git - jquery.git/commitdiff
Make sure that a DOM node isn't getting passed through (as is the case in IE, it...
authorjeresig <jeresig@gmail.com>
Wed, 2 Dec 2009 19:59:19 +0000 (14:59 -0500)
committerjeresig <jeresig@gmail.com>
Wed, 2 Dec 2009 19:59:19 +0000 (14:59 -0500)
src/core.js

index 5da31e6a622f827ceac006da786a7fe1c8470036..e2d3b60f75820f0a61cb6118625f0801e3314db8 100644 (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;
                }