Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Fixes to esriLoader to enable passing an array of strings to it#54

Merged
tomwayson merged 2 commits intoEsri:masterfrom
willisd2:master
Jul 28, 2015
Merged

Fixes to esriLoader to enable passing an array of strings to it#54
tomwayson merged 2 commits intoEsri:masterfrom
willisd2:master

Conversation

@willisd2
Copy link
Copy Markdown
Contributor

The current implementation allows an array of strings to be passed to
the esriLoader, but $q Resolves only support 1 parameter. Therefore, in
your .then() function you would only ever get the first module in your
list. The esriLoader will now take a callback function that will be passed
all of the requested modules. The original implementation is also
intact so as not to break an application if someone decides to update to
this version.

The current implementation allows an array of strings to be passed to
the loader, but $q Resolves only support 1 parameter.  Therefore, in
your .then() function you would only ever get the first module in your
list.  The loader will now take a callback function that will be passed
all of the requested modules.  The original implementation is also
intact so as not to break an application if someone decides to update to
this version.
@willisd2
Copy link
Copy Markdown
Contributor Author

Sorry, I meant to submit this second commit as a new pull request. I'm still somewhat new to Git and am still fumbling my way around.

@tomwayson tomwayson merged commit 816558e into Esri:master Jul 28, 2015
@tomwayson
Copy link
Copy Markdown
Member

Thanks @willisd2!

Merged and updated the feature layers example accordingly.

ScottONeal added a commit to ScottONeal/angular-esri-map that referenced this pull request Jul 28, 2015
@tomwayson tomwayson added this to the Beta 3 milestone Aug 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants