Merge branch 'bug_7413' of https://github.com/rwldrn/jquery into rwldrn-bug_7413

This commit is contained in:
jeresig
2010-12-09 12:32:15 -05:00
2 changed files with 17 additions and 4 deletions

View 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;
}