From 8393adfb4fe4fa5d9181e35deedd90fb0107936d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 22 Nov 2014 00:33:17 +0300 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/viewer.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/viewer.js b/ui (gen4)/viewer.js index 20277859..7d47a5a4 100755 --- a/ui (gen4)/viewer.js +++ b/ui (gen4)/viewer.js @@ -19,8 +19,6 @@ var ribbons = require('ribbons') /*********************************************************************/ // helpers... -var reloadAfter = -module.reloadAfter = function reloadAfter(transitions){ return function(){ return function(){ @@ -31,10 +29,9 @@ function reloadAfter(transitions){ } } + // XXX make this compatible with multiple images... // XXX for muptiple targets this will just do a .reload()... -var updateImagePosition = -module.updateImagePosition = function updateImagePosition(actions, target){ if(actions.ribbons.getRibbonSet().length == 0){ return @@ -1020,6 +1017,11 @@ actions.Actions(Client, { function(msg, help){ this.ribbons.setEmptyMsg(msg, help) }], + // This is called by .ribbons, the goal is to use it to hook into + // image updating from features and extensions... + // + // NOTE: not intended for calling manually. + // // XXX experimental... // ...need this to get triggered by .ribbons // at this point manually triggering this will not do anything...