Skip to content
This repository was archived by the owner on Apr 10, 2018. It is now read-only.

Add identity function type - #512

Merged
lucaswoj merged 2 commits into
mb-pagesfrom
identity-function
Oct 4, 2016
Merged

lucaswoj merged 2 commits into
mb-pagesfrom
identity-function

Conversation

@lucaswoj

@lucaswoj lucaswoj commented Sep 29, 2016 •

Copy link
Copy Markdown

This PR adds the new identity function type (mapbox/mapbox-gl-function#25) to the documentation and validator.

ref mapbox/mapbox-gl-js#3274

@lucaswoj

lucaswoj commented Sep 29, 2016 •

Copy link
Copy Markdown
Author

cc @lbud @jfirebaugh @mollymerp for review


module.exports = function validateFunction(options) {
var functionValueSpec = options.valueSpec;
var functionValue = options.value;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why do you define this var but continue using options.value... throughout the function? maybe this has something to do w the what needs to be unbundled?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I use functionValue within validateFunctionStops when options gets shadowed.

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.

3 participants