mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 08:04:56 -05:00
Fixes #7413; isEmptyObject() check to see if obj passes isPlainObject
This commit is contained in:
@@ -532,6 +532,12 @@ jQuery.extend({
|
||||
},
|
||||
|
||||
isEmptyObject: function( obj ) {
|
||||
|
||||
// Fixes #7413 Check to see if obj passes isPlainObject
|
||||
if ( !jQuery.isPlainObject( obj ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for ( var name in obj ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user