Merge branch 'bug_7413' of https://github.com/rwldrn/jquery into rwldrn-bug_7413
[jquery.git] / src / core.js
index 18cd3a3..07d5caf 100644 (file)
@@ -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;
                }