Skip to content

Commit

Permalink
The constructor check for isPlainObject was redundant, everything sti…
Browse files Browse the repository at this point in the history
…ll passes without it.
  • Loading branch information
jeresig committed Dec 19, 2009
1 parent 67b3be2 commit 298bfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -434,7 +434,7 @@ jQuery.extend({
// Must be an Object. // Must be an Object.
// Because of IE, we also have to check the presence of the constructor property. // 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 // 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; return false;
} }


Expand Down

0 comments on commit 298bfb7

Please sign in to comment.