mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
jquery core: Simplifying isEmptyObject() and adding tests.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user