mirror of
https://github.com/ikrpg/ikrpg.github.io.git
synced 2026-05-13 22:37:20 +00:00
Prepare to clean up
This commit is contained in:
parent
8e1bd9b0dc
commit
69ef1c4b7b
4 changed files with 254 additions and 271 deletions
|
|
@ -13,11 +13,13 @@ var ikrpg = ikrpg || {};
|
|||
function clean(object) {
|
||||
$.each(object, function(key, value) {
|
||||
if($.type(value) === "object") {
|
||||
clean(value);
|
||||
object[key] = clean(value);
|
||||
} else {
|
||||
object[key] = "";
|
||||
}
|
||||
});
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
clean(ikrpg.cards.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue