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){