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

Replace developerError with Check in polygonGeometry #4934

Merged

Conversation

rahwang
Copy link
Contributor

@rahwang rahwang commented Jan 30, 2017

Addressing #4794

if (!defined(options.positions)) {
throw new DeveloperError('options.positions is required.');
}
Check.typeOf.object('options.positions', options.positions);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use Check.defined.

if (!defined(options.positions)) {
throw new DeveloperError('options.positions is required.');
}
Check.typeOf.object('options.positions', options.positions);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@lilleyse
Copy link
Contributor

Thanks! The build failure seems to be unrelated to this PR.

@lilleyse lilleyse merged commit 48266d7 into CesiumGS:master Jan 30, 2017
@rahwang rahwang deleted the replace-developerError-polygon-geometry branch January 31, 2017 12:47
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