-
Notifications
You must be signed in to change notification settings - Fork 77
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
Adding multiple objects #4
Comments
Are you talking about a different syntax for Like: loader.add([
{ key: 'someKey1', url: 'http://...' },
{ key: 'someKey2', url: 'http://...' },
{ url: 'http://...' },
{ url: 'http://...' }
]); Is that what you're looking for? |
Added an object and array syntax. All the following will now work fine: loader
.add('key', 'http://...', function () {})
.add('http://...', function () {})
.add(['http://...', 'http://...'])
.add({ name: 'key2', url: 'http://...' }, function () {})
.add({ url: 'http://...' }, function () {})
.add({ name: 'key3', url: 'http://...', onComplete: function () {} })
.add({ url: 'http://...', onComplete: function () {} })
.add([
{ name: 'key4', url: 'http://...', onComplete: function () {} },
{ url: 'http://...', onComplete: function () {} },
'http://...',
'http://...'
]); |
this is PERFECT :) 👍 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hows about we make it so that we can load an array of objects?
The text was updated successfully, but these errors were encountered: