From 526a9730e008dd9340689341bd58f3ed326ffa54 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 24 Nov 2014 18:23:12 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/data.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/data.js b/ui (gen4)/data.js index 9bcac52c..17ba5480 100755 --- a/ui (gen4)/data.js +++ b/ui (gen4)/data.js @@ -541,6 +541,12 @@ var DataPrototype = { return this.current } + // explicit image gid -- get the loaded group gid... + if(this.order.indexOf(target) >= 0){ + var x = this.getLoadedInGroup(target) + target = x != null ? x : target + } + // current image shorthand... if(target == 'current'){ target = this.current @@ -607,10 +613,6 @@ var DataPrototype = { mode = mode == null ? 'before' : mode } - // get the loaded group gid... - var x = this.getLoadedInGroup(target) - target = x != null ? x : target - var i = this.order.indexOf(target) // invalid gid...