From 1eebfe3020e2f55af5dc4497c9fc11136983a417 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 28 Nov 2020 00:10:37 +0300 Subject: [PATCH] minor refactoring... Signed-off-by: Alex A. Naanou --- Viewer/features/ui-status.js | 9 +++------ Viewer/imagegrid/data.js | 3 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Viewer/features/ui-status.js b/Viewer/features/ui-status.js index de6a752c..bdf5aad7 100755 --- a/Viewer/features/ui-status.js +++ b/Viewer/features/ui-status.js @@ -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 diff --git a/Viewer/imagegrid/data.js b/Viewer/imagegrid/data.js index c8ec6333..248d11d1 100755 --- a/Viewer/imagegrid/data.js +++ b/Viewer/imagegrid/data.js @@ -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...