Skip to content

Batch class changes - #2380

Merged
mourner merged 1 commit into
masterfrom
batch-class
Apr 4, 2016
Merged

mourner merged 1 commit into
masterfrom
batch-class

Conversation

@mourner

@mourner mourner commented Apr 1, 2016

Copy link
Copy Markdown
Member

Comment thread js/ui/map.js
if (this.style) this.style._cascade(this._classes, options);
this._classOptions = options;
if (this.style) this.style.cascade();
this._update(true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have a preference for moving logic out of Map and into Style. I wouldn't be opposed to adding more parameters to _update for the purpose.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

What logic exactly? I don't see anything here that can be moved. Classes belong to the Map object.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Classes belong to the Map object.

This feels wrong to me. But it is a separate issue that can be addressed separately.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lucaswoj I refer to @jfirebaugh's judgement here — he moved it from Style to Map earlier as far as I remember.

@lucaswoj

lucaswoj commented Apr 4, 2016

Copy link
Copy Markdown
Contributor

Looks good 🚢

@mourner
mourner merged commit 841a473 into master Apr 4, 2016
@mourner
mourner deleted the batch-class branch April 4, 2016 17:33
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