added some context isolation...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-01-25 01:05:01 +03:00
parent 16d4d26870
commit 1d553ec2ef

View File

@ -2851,6 +2851,12 @@ function(title, func){
var TaskActions = actions.Actions({ var TaskActions = actions.Actions({
config: { config: {
'context-exclude-attrs': [ 'context-exclude-attrs': [
// XXX what else should we isolate from the clone???
'__tasks',
'__queues',
//'__links',
//'__isolated',
'features', 'features',
], ],
}, },
@ -3104,12 +3110,14 @@ var TaskActions = actions.Actions({
// NOTE: we intentionally disable ui here and do not trigger .start()... // NOTE: we intentionally disable ui here and do not trigger .start()...
return (links[title] = return (links[title] =
Object.assign( Object.assign(
// new base object...
// XXX add a 'link' feature... // XXX add a 'link' feature...
ImageGridFeatures.setup([ ImageGridFeatures.setup([
...this.features.input, ...this.features.input,
'-ui', '-ui',
'link-context', 'link-context',
]), ]),
// clone data...
// NOTE: this can shadow parts of the new base object // NOTE: this can shadow parts of the new base object
// so we'll need to exclude some stuff... // so we'll need to exclude some stuff...
Object.assign({}, this) Object.assign({}, this)
@ -3119,6 +3127,7 @@ var TaskActions = actions.Actions({
|| [ 'features' ]) || [ 'features' ])
.forEach(function(key){ .forEach(function(key){
delete this[key] }.bind(this)) }), delete this[key] }.bind(this)) }),
// context-specific data...
{ {
// link metadata... // link metadata...
parent: this, parent: this,