elect
11/25/2017, 6:58 PMdata.requests
with map
instead of using the if
at the end?
val rq = data.requests.find{ it.id == which && it.loaded }
if(rq != null){
val sc = rq.scene
if (--rq.refCnt == 0) data.requests.remove(rq)
return sc
}
pablisco
11/27/2017, 11:29 AMfilter
instead?elect
11/27/2017, 1:07 PM