mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweaking and cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b7b4bc7aef
commit
16d4d26870
@ -884,7 +884,7 @@ var SharpActions = actions.Actions({
|
|||||||
// rethink...
|
// rethink...
|
||||||
// ...can we make .link() work like link-on-demand, i.e. actually
|
// ...can we make .link() work like link-on-demand, i.e. actually
|
||||||
// create the link on .clear() but before that use this???
|
// create the link on .clear() but before that use this???
|
||||||
// XXX move this to filesystem???
|
// XXX move this to features/filesystem.js???
|
||||||
makeIndex: ['- File/',
|
makeIndex: ['- File/',
|
||||||
core.doc`
|
core.doc`
|
||||||
|
|
||||||
@ -910,26 +910,27 @@ var SharpActions = actions.Actions({
|
|||||||
saving the changes correctly and allow the user to leave the index...
|
saving the changes correctly and allow the user to leave the index...
|
||||||
`,
|
`,
|
||||||
function(options={}){
|
function(options={}){
|
||||||
var that = options.linked === false ?
|
var context =
|
||||||
|
options.linked === false ?
|
||||||
this
|
this
|
||||||
: this.link()
|
: this.link()
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
// metadata...
|
// metadata...
|
||||||
options.metadata !== false
|
options.metadata !== false
|
||||||
&& ((options.metadata == 'full'
|
&& ((options.metadata == 'full'
|
||||||
&& that.readAllMetadata) ?
|
&& context.readAllMetadata) ?
|
||||||
// full (slow)...
|
// full (slow)...
|
||||||
that.readAllMetadata()
|
context.readAllMetadata()
|
||||||
// partial (fast)...
|
// partial (fast)...
|
||||||
: (that.cacheAllMetadata
|
: (context.cacheAllMetadata
|
||||||
&& that.cacheAllMetadata())),
|
&& context.cacheAllMetadata())),
|
||||||
// previews...
|
// previews...
|
||||||
options.previews !== false
|
options.previews !== false
|
||||||
&& that.makePreviews
|
&& context.makePreviews
|
||||||
&& that.makePreviews(),
|
&& context.makePreviews(),
|
||||||
// save...
|
// save...
|
||||||
]).then(function(){
|
]).then(function(){
|
||||||
that.saveIndex() }) }],
|
context.saveIndex() }) }],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user