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

Fix promises for 3D Tiles #4200

Merged
merged 1 commit into from
Aug 12, 2016
Merged

Fix promises for 3D Tiles #4200

merged 1 commit into from
Aug 12, 2016

Conversation

lilleyse
Copy link
Contributor

Continuation of #4142 for all the 3D Tiles related classes.

A solution for #3453 will be in a separate PR.

this.batchTableResources = undefined;
this.featurePropertiesDirty = false;

this._contentReadyToProcessPromise = when.defer();
this._readyPromise = when.defer();
Copy link
Contributor

Choose a reason for hiding this comment

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

Up to you, but I would recommend changing _readyPromise to _readyDeferred and contentReadyToProcessPromise to contentReadyToProcessDeferred throughout this PR to avoid confusion in the future and make it clear that these are deferreds and not promises.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kept it that way because it's a common theme, Model and Primitive for example have that naming too.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, we can always revisit it in a separate PR; probably when we do the big when -> bluebird switchover.

@mramato
Copy link
Contributor

mramato commented Aug 12, 2016

That's my only comment, like I said, it's up to you. Everything else looks good.

@mramato mramato merged commit d9ce27c into 3d-tiles Aug 12, 2016
@mramato mramato deleted the promise-fix branch August 12, 2016 18:50
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