mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Cleaning up
This commit is contained in:
parent
102724b3e8
commit
0297de3648
@ -55,15 +55,10 @@ var Tiddler = function(/* tiddler,fields */) {
|
|||||||
this.getFields = function() {
|
this.getFields = function() {
|
||||||
var r = {};
|
var r = {};
|
||||||
for(var f in fields) {
|
for(var f in fields) {
|
||||||
var v = fields[f];
|
r[f] = fields[f];
|
||||||
if(v instanceof Array) {
|
|
||||||
r[f] = v.slice(0);
|
|
||||||
} else {
|
|
||||||
r[f] = v;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(tags) {
|
if(tags) {
|
||||||
r.tags = tags;
|
r.tags = tags.slice(0);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user