git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jquery core: Simplifying isEmptyObject() and adding tests.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
74b9fee
..
a71656d
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-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