EsotericSoftware/spine-runtimes — pull request #158 by agmcleod (2013-11-07 14:04:21+00:00)
Title: changed texture loaded to pass the current context.

An issue I was having with the texture loader is that the callback expects there to be an atlas object available, much like in the turbulenz example:

https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-js/turbulenz/index.html#L49

In the example, the atlas object exists because it is part of an ajax callback, so the rest of the code has had time to run. I've been working on using Spine with MelonJS, a canvas based game framework. The idea with Melon is to typically load all your necessary resources at the loading screen, and simply refer to them when you need it. So I made this change here to just simply pass the atlas object to the loader.