mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d42cd430f9
commit
f099aa68e0
@ -3170,8 +3170,7 @@ module.Tasks = ImageGridFeatures.Feature({
|
||||
var selfTest =
|
||||
module.selfTest = function(func){
|
||||
func.__self_test__ = true
|
||||
return func
|
||||
}
|
||||
return func }
|
||||
|
||||
var SelfTestActions = actions.Actions({
|
||||
config: {
|
||||
@ -3188,19 +3187,13 @@ var SelfTestActions = actions.Actions({
|
||||
return action != 'selfTest'
|
||||
&& (that[action].func.__self_test__
|
||||
|| that.getActionAttr(action, 'self_test'))})
|
||||
|
||||
logger
|
||||
&& tests.forEach(function(action){
|
||||
logger.emit('found', action) })
|
||||
|
||||
|
||||
tests.forEach(function(action){
|
||||
that[action]()
|
||||
|
||||
logger
|
||||
&& logger.emit('done', action)
|
||||
})
|
||||
})],
|
||||
&& logger.emit('done', action) }) })],
|
||||
})
|
||||
|
||||
var SelfTest =
|
||||
|
||||
@ -187,6 +187,9 @@ var MetadataReaderActions = actions.Actions({
|
||||
&& that.markChanged('images', [gid]) }
|
||||
|
||||
resolve(data) }) }) }) })],
|
||||
// XXX Q: should this be a linked task???
|
||||
// ...on one hand yes, on the other, saving after this may
|
||||
// unintentionally save other state from the main object...
|
||||
readAllMetadata: ['File/Read all metadata',
|
||||
'readMetadata: "all" ...'],
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user