]> source.dussan.org Git - jquery.git/commitdiff
The constructor check for isPlainObject was redundant, everything still passes withou...
authorjeresig <jeresig@gmail.com>
Sat, 19 Dec 2009 00:43:04 +0000 (19:43 -0500)
committerjeresig <jeresig@gmail.com>
Sat, 19 Dec 2009 00:43:04 +0000 (19:43 -0500)
src/core.js

index 67b4574bec78e6aa77ead421577697bb234fc435..eb67ba19fb6296f0ef9fb294e9661aaf89035795 100644 (file)
@@ -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;
                }