cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-24 18:23:12 +03:00
parent 3aeaf6e36e
commit 526a9730e0

View File

@ -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...