minor changes to defaults...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-04-03 11:02:55 +03:00
parent 2b0ae5c167
commit a5bbae8ae8

View File

@ -117,6 +117,9 @@ var SharpActions = actions.Actions({
// .makePreviews() // .makePreviews()
// .makePreviews('all')
// -> actions
//
// .makePreviews('current') // .makePreviews('current')
// -> actions // -> actions
// //
@ -126,11 +129,8 @@ var SharpActions = actions.Actions({
// .makePreviews([gid, gid, ..]) // .makePreviews([gid, gid, ..])
// -> actions // -> actions
// //
// .makePreviews('all')
// -> actions
//
// XXX should this account for non-jpeg images??? // XXX should this account for non-jpeg images???
makePreviews: ['Sharp/Make image previews', makePreviews: ['Sharp|File/Make image previews',
function(images, sizes, base_path, logger){ function(images, sizes, base_path, logger){
var that = this var that = this
logger = logger || this.logger logger = logger || this.logger
@ -138,7 +138,8 @@ var SharpActions = actions.Actions({
// get/normalize images... // get/normalize images...
images = images || this.current //images = images || this.current
images = images || 'all'
// keywords... // keywords...
images = images == 'all' ? this.data.getImages('all') images = images == 'all' ? this.data.getImages('all')
: images == 'current' ? this.current : images == 'current' ? this.current