started reworking feature sort algorithm...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-06-24 15:09:13 +03:00
parent b22a1f1ae1
commit 1bb316da4f
3 changed files with 20 additions and 4 deletions

View File

@ -577,13 +577,13 @@ actions.Actions({
// shorthands... // shorthands...
// NOTE: these are here mostly for the menus... // NOTE: these are here mostly for the menus...
rotateCW: ['Image|Edit/Rotate image clockwise', rotateCW: ['Image|Edit/Rotate image clockwise',
function(target){ this.rotate(traget, 'cw') }], function(target){ this.rotate(target, 'cw') }],
rotateCCW: ['Image|Edit/Rotate image counterclockwise', rotateCCW: ['Image|Edit/Rotate image counterclockwise',
function(target){ this.rotate(traget, 'ccw') }], function(target){ this.rotate(target, 'ccw') }],
flipVertical: ['Image|Edit/Flip image vertically', flipVertical: ['Image|Edit/Flip image vertically',
function(target){ this.flip(traget, 'vertical') }], function(target){ this.flip(target, 'vertical') }],
flipHorizontal: ['Image|Edit/Flip image horizontally', flipHorizontal: ['Image|Edit/Flip image horizontally',
function(target){ this.flip(traget, 'horizontal') }], function(target){ this.flip(target, 'horizontal') }],
}) })

View File

@ -901,6 +901,10 @@ var FileSystemCommentsActions = actions.Actions({
return file.loadIndex(path, that.config['index-dir'] +'/comments', date, logger) return file.loadIndex(path, that.config['index-dir'] +'/comments', date, logger)
.then(function(res){ .then(function(res){
// no comments present...
if(res[path] == null){
return res
}
// if we have no sub-indexes just load the // if we have no sub-indexes just load the
// comments as-is... // comments as-is...

View File

@ -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>, ...]) // .setup(<actions>, [<feature>, ...])
// -> <actions> // -> <actions>