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

Detect and parse data URIs in loadWithXhr #1533

Merged
merged 5 commits into from
Mar 4, 2014
Merged

Detect and parse data URIs in loadWithXhr #1533

merged 5 commits into from
Mar 4, 2014

Conversation

shunter
Copy link
Contributor

@shunter shunter commented Mar 4, 2014

This will be useful for loading CZML documents with embedded glTF models.

* 'X-Custom-Header' : 'some value'
* }).then(function(document) {
* //Do something with the document
* }, function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could be mistaken, but doesn't this callback provide an error object when it fails? If so we should add it, since this is example code and people might not realize it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I copied this from other places. I updated them all to include the error parameter.

@mramato
Copy link
Contributor

mramato commented Mar 4, 2014

Just the one question/comment. Other than that this looks good and tests pass in Chrome/Firefox/IE11

@mramato
Copy link
Contributor

mramato commented Mar 4, 2014

This also probably warrants a CHANGES update, since we now support data uris in our loadXXX functions.

@shunter
Copy link
Contributor Author

shunter commented Mar 4, 2014

Fair enough, I added it to Dr. Changes, MD.

mramato added a commit that referenced this pull request Mar 4, 2014
Detect and parse data URIs in loadWithXhr
@mramato mramato merged commit ee1f422 into master Mar 4, 2014
@mramato mramato deleted the loadDataUri branch March 4, 2014 16:36
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

Successfully merging this pull request may close these issues.

2 participants