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

Refactor to inline StyleDeclarationSet into StyleLayer #1968

Merged
merged 1 commit into from
Jan 22, 2016
Merged

Conversation

lucaswoj
Copy link
Contributor

Fixes #1963

We still use StyleDeclarationSet in Bucket for now, but that'll go away with #1957.

cc @ansis @mourner @jfirebaugh

@lucaswoj
Copy link
Contributor Author

... why stop there. Ripped out the PaintProperties class too. I'll leave the removal of LayoutProperties for the next PR.

This is ready for 👀

return util.extend({}, input, {
stops: input.stops.map(function(step) {
return [step[0], parseColor(step[1])];
})
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't have to be a closure (created on every color) — function can be moved to top-level.

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