minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-25 01:02:01 +03:00
parent 526a9730e0
commit d0e2887ec1

View File

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