mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
bugfix (temporary?)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1bcf4b5e93
commit
08d78a3978
@ -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() } } } }],
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user