mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
added some context isolation...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
16d4d26870
commit
1d553ec2ef
@ -2851,6 +2851,12 @@ function(title, func){
|
||||
var TaskActions = actions.Actions({
|
||||
config: {
|
||||
'context-exclude-attrs': [
|
||||
// XXX what else should we isolate from the clone???
|
||||
'__tasks',
|
||||
'__queues',
|
||||
//'__links',
|
||||
//'__isolated',
|
||||
|
||||
'features',
|
||||
],
|
||||
},
|
||||
@ -3104,12 +3110,14 @@ var TaskActions = actions.Actions({
|
||||
// NOTE: we intentionally disable ui here and do not trigger .start()...
|
||||
return (links[title] =
|
||||
Object.assign(
|
||||
// new base object...
|
||||
// XXX add a 'link' feature...
|
||||
ImageGridFeatures.setup([
|
||||
...this.features.input,
|
||||
'-ui',
|
||||
'link-context',
|
||||
]),
|
||||
// clone data...
|
||||
// NOTE: this can shadow parts of the new base object
|
||||
// so we'll need to exclude some stuff...
|
||||
Object.assign({}, this)
|
||||
@ -3119,6 +3127,7 @@ var TaskActions = actions.Actions({
|
||||
|| [ 'features' ])
|
||||
.forEach(function(key){
|
||||
delete this[key] }.bind(this)) }),
|
||||
// context-specific data...
|
||||
{
|
||||
// link metadata...
|
||||
parent: this,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user