mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d77c01e63e
commit
1eebfe3020
@ -870,14 +870,12 @@ var StatusLogActions = actions.Actions({
|
||||
clearStatusLog: ['Interface/Clear status log',
|
||||
{mode: 'advancedBrowseModeAction'},
|
||||
function(){
|
||||
delete this.__status_log
|
||||
}],
|
||||
delete this.__status_log }],
|
||||
statusMessage: ['- Interface/',
|
||||
function(){
|
||||
var msg = [...arguments]
|
||||
if(msg.len == 0){
|
||||
return
|
||||
}
|
||||
return }
|
||||
var log = this.__status_log = this.__status_log || []
|
||||
|
||||
// XXX should we convert here and how???
|
||||
@ -886,8 +884,7 @@ var StatusLogActions = actions.Actions({
|
||||
// truncate the log...
|
||||
var s = this.config['ui-status-log-size']
|
||||
if(s != 0 && log.length > (s || 100)){
|
||||
log.splice(0, log.length - (s || 100))
|
||||
}
|
||||
log.splice(0, log.length - (s || 100)) }
|
||||
|
||||
// XXX show the message above the status bar (same style)...
|
||||
// XXX
|
||||
|
||||
@ -861,8 +861,9 @@ var DataPrototype = {
|
||||
// target image is not loaded.
|
||||
// Use offset to explicitly get the image before/after target.
|
||||
//
|
||||
// XXX most of the complexity here comes from argument DSL parsing,
|
||||
// NOTE: most of the complexity here comes from argument DSL parsing,
|
||||
// might be good to revise argument syntax and handling...
|
||||
//
|
||||
// XXX doc needs revision....
|
||||
getImage: function(target, mode, list){
|
||||
// empty data...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user