Closed subblue closed 12 years ago
Great idea! Would love to see it named just as in GLOW.Load, plus the extra (optional) context parameter. Something like...
{ ..., onLoadComplete: myCompleteHandler, onLoadContext: theContextOfMyCompleteHandlerWhichProbablyIsThis }
...and when calling...
if(this.scope.onLoadComplete) { this.scope.onLoadComplete.call( this.scope.onLoadContext, this.scope); }
Or what do you say? :)
Yes that makes sense, I'd forgotten about the GLOW.Load object! I've added a new commit (which GitHub seems to have magically included here...)
Great! Thanks :)
Useful for triggering a draw update on demand once a new image has loaded.