X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=eb67ba19fb6296f0ef9fb294e9661aaf89035795;hb=209751fcbd8a42eef68df44c875763b6af8a5474;hp=0c0d5a2e1d291c1e451abcc3352e76bfdf0c514e;hpb=d40083c866738727aa7ffd7f13d2955bc9575d5e;p=jquery.git diff --git a/src/core.js b/src/core.js index 0c0d5a2..eb67ba1 100644 --- a/src/core.js +++ b/src/core.js @@ -433,7 +433,8 @@ jQuery.extend({ isPlainObject: function( obj ) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. - if ( !obj || toString.call(obj) !== "[object Object]" || !("constructor" in obj) ) { + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { return false; }