We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e81114 commit 67b3be2Copy full SHA for 67b3be2
src/core.js
@@ -433,7 +433,8 @@ jQuery.extend({
433
isPlainObject: function( obj ) {
434
// Must be an Object.
435
// Because of IE, we also have to check the presence of the constructor property.
436
- if ( !obj || toString.call(obj) !== "[object Object]" || !("constructor" in obj) ) {
+ // Make sure that DOM nodes and window objects don't pass through, as well
437
+ if ( !obj || toString.call(obj) !== "[object Object]" || !("constructor" in obj) || obj.nodeType || obj.setInterval ) {
438
return false;
439
}
440
0 commit comments