onComplete calls in parent function's scope when function derived from array