mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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({
|
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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user