cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-03-29 19:56:28 +03:00
parent b06127acf5
commit 28734c5ee0
2 changed files with 5 additions and 7 deletions

View File

@ -219,15 +219,15 @@ var ImageMarkActions = actions.Actions({
nextMarked: ['Mark|Navigate/Next marked image', nextMarked: ['Mark|Navigate/Next marked image',
function(mode){ this.nextTagged('selected', mode) }], function(mode){ this.nextTagged('selected', mode) }],
cropMarked: ['Mark|Crop/Crop $marked images', shiftMarkedUp: ['Mark|Ribbon/Shift marked $up',
function(flatten){ this.cropTagged('selected', 'any', flatten) }],
shiftMarkedUp: ['Mark|Ribbon/Shift marked up',
{undo: undoShift('shiftMarkedDown')}, {undo: undoShift('shiftMarkedDown')},
shiftMarked('up')], shiftMarked('up')],
shiftMarkedDown: ['Mark|Ribbon/Shift marked down', shiftMarkedDown: ['Mark|Ribbon/Shift marked $down',
{undo: undoShift('shiftMarkedUp')}, {undo: undoShift('shiftMarkedUp')},
shiftMarked('down')], shiftMarked('down')],
cropMarked: ['Mark|Crop/Crop $marked images',
function(flatten){ this.cropTagged('selected', 'any', flatten) }],
}) })

View File

@ -263,9 +263,7 @@ function(elem, state_accessor, states, callback_a, callback_b){
} }
// update the element... // update the element...
//state_accessor.call(this, e, state)
var res = state_accessor.call(this, e, state) var res = state_accessor.call(this, e, state)
//action = res !== undefined ? res : action
// post callback... // post callback...
if(callback_post != null){ if(callback_post != null){