mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 06:43:15 +00:00
parent
41287d7859
commit
f217451fc5
|
@ -35,9 +35,7 @@ exports.trim = function(str) {
|
||||||
Return the number of keys in an object
|
Return the number of keys in an object
|
||||||
*/
|
*/
|
||||||
exports.count = function(object) {
|
exports.count = function(object) {
|
||||||
var s = 0;
|
return Object.keys(object || {}).length;
|
||||||
$tw.utils.each(object,function() {s++;});
|
|
||||||
return s;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -645,4 +643,4 @@ exports.tagToCssSelector = function(tagName) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user