bugfix (temporary?)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-12-27 20:42:45 +03:00
parent 1bcf4b5e93
commit 08d78a3978

View File

@ -324,6 +324,7 @@ actions.Actions({
{journal: true}, {journal: true},
function(lst, base){ this.load(this.dataFromURLs(lst, base)) }], function(lst, base){ this.load(this.dataFromURLs(lst, base)) }],
// XXX not sure about the instanceof check below...
json: ['- File/Dump state as JSON object', json: ['- File/Dump state as JSON object',
core.doc`Dump state as JSON object core.doc`Dump state as JSON object
@ -365,6 +366,8 @@ actions.Actions({
for(var k in this){ for(var k in this){
if(!k.startsWith('_') if(!k.startsWith('_')
&& this[k] != null && this[k] != null
// XXX HACK? ...this feels a bit too abstract...
&& !(this[k] instanceof this.constructor)
&& this[k].json != null){ && this[k].json != null){
res[k] = this[k].json() } } } }], res[k] = this[k].json() } } } }],