jquery core: Simplifying isEmptyObject() and adding tests.

This commit is contained in:
Ariel Flesler 2009-07-16 15:16:44 +00:00
parent 991d039b62
commit a38a5cd531
2 changed files with 13 additions and 3 deletions

View file

@ -292,9 +292,9 @@ jQuery.extend({
},
isEmptyObject: function( obj ) {
var name = "";
for(name in obj) break;
return !name;
for(var name in obj)
return false;
return true;
},
// check if an element is in a (or is an) XML document