From: jeresig Date: Sat, 19 Dec 2009 00:43:04 +0000 (-0500) Subject: The constructor check for isPlainObject was redundant, everything still passes withou... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=298bfb79e6acfe2c0e3b1845a05291af82910ace;p=jquery.git The constructor check for isPlainObject was redundant, everything still passes without it. --- diff --git a/src/core.js b/src/core.js index 67b4574..eb67ba1 100644 --- a/src/core.js +++ b/src/core.js @@ -434,7 +434,7 @@ jQuery.extend({ // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || toString.call(obj) !== "[object Object]" || !("constructor" in obj) || obj.nodeType || obj.setInterval ) { + if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { return false; }