Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jaws.Assets() Arrays vs. Objects #115

Open
atomdmac opened this issue Jun 25, 2014 · 0 comments
Open

jaws.Assets() Arrays vs. Objects #115

atomdmac opened this issue Jun 25, 2014 · 0 comments

Comments

@atomdmac
Copy link

I've been looking at the source for jaws.Assets and noticed that, although the "loaded", "loading" and "data" properties of the Assets() instance are defined as Arrays, they seem to be treated as Objects (i.e. "associative arrays" rather than indexed numerically).

My questions are:

  1. What is the rationale behind defining these as Arrays rather than plain Objects/hashes? Are there any advantages to doing it this way?
  2. When using multiple instances of jaws.Assets(), I've had trouble getting my onload() handlers to fire (when passed in as an option to loadAll()). Does anyone else have experience with using multiple instances of the assets loader?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant