mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
started reworking feature sort algorithm...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b22a1f1ae1
commit
1bb316da4f
@ -577,13 +577,13 @@ actions.Actions({
|
||||
// shorthands...
|
||||
// NOTE: these are here mostly for the menus...
|
||||
rotateCW: ['Image|Edit/Rotate image clockwise',
|
||||
function(target){ this.rotate(traget, 'cw') }],
|
||||
function(target){ this.rotate(target, 'cw') }],
|
||||
rotateCCW: ['Image|Edit/Rotate image counterclockwise',
|
||||
function(target){ this.rotate(traget, 'ccw') }],
|
||||
function(target){ this.rotate(target, 'ccw') }],
|
||||
flipVertical: ['Image|Edit/Flip image vertically',
|
||||
function(target){ this.flip(traget, 'vertical') }],
|
||||
function(target){ this.flip(target, 'vertical') }],
|
||||
flipHorizontal: ['Image|Edit/Flip image horizontally',
|
||||
function(target){ this.flip(traget, 'horizontal') }],
|
||||
function(target){ this.flip(target, 'horizontal') }],
|
||||
})
|
||||
|
||||
|
||||
|
||||
@ -901,6 +901,10 @@ var FileSystemCommentsActions = actions.Actions({
|
||||
|
||||
return file.loadIndex(path, that.config['index-dir'] +'/comments', date, logger)
|
||||
.then(function(res){
|
||||
// no comments present...
|
||||
if(res[path] == null){
|
||||
return res
|
||||
}
|
||||
|
||||
// if we have no sub-indexes just load the
|
||||
// comments as-is...
|
||||
|
||||
@ -569,6 +569,18 @@ var FeatureSetProto = {
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
buildFeatureList2: function(obj, lst){
|
||||
var that = this
|
||||
obj = obj || {}
|
||||
|
||||
lst = lst == null ? this.features : lst
|
||||
lst = lst.constructor !== Array ? [lst] : lst
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
//
|
||||
// .setup(<actions>, [<feature>, ...])
|
||||
// -> <actions>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user