From d0e2887ec1ad6991df496af80755450ca77de3cd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 25 Nov 2014 01:02:01 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- ui (gen4)/data.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/data.js b/ui (gen4)/data.js index 17ba5480..0038a04b 100755 --- a/ui (gen4)/data.js +++ b/ui (gen4)/data.js @@ -541,17 +541,17 @@ var DataPrototype = { return this.current } + // current image shorthand... + if(target == 'current'){ + target = 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 - } - // order -> gid special case... if(typeof(target) == typeof(123)){ if(target >= this.order.length){