From 08d78a3978a59797fcb6ae7699ce03efe8d7bbce Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Dec 2020 20:42:45 +0300 Subject: [PATCH] bugfix (temporary?)... Signed-off-by: Alex A. Naanou --- Viewer/features/base.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Viewer/features/base.js b/Viewer/features/base.js index e2644c29..7a398274 100755 --- a/Viewer/features/base.js +++ b/Viewer/features/base.js @@ -324,6 +324,7 @@ actions.Actions({ {journal: true}, function(lst, base){ this.load(this.dataFromURLs(lst, base)) }], + // XXX not sure about the instanceof check below... json: ['- File/Dump state as JSON object', core.doc`Dump state as JSON object @@ -365,6 +366,8 @@ actions.Actions({ for(var k in this){ if(!k.startsWith('_') && this[k] != null + // XXX HACK? ...this feels a bit too abstract... + && !(this[k] instanceof this.constructor) && this[k].json != null){ res[k] = this[k].json() } } } }],