Skip to content

Avoid use of goog.array.clone with arrays #3140

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

Merged
merged 1 commit into from
Jan 15, 2015
Merged

Avoid use of goog.array.clone with arrays #3140

merged 1 commit into from
Jan 15, 2015

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Jan 15, 2015

When we know we're dealing with arrays (instead of something array like), use array prototype methods.

@elemoine
Copy link
Member

Looks good. Thanks.

tschaub added a commit that referenced this pull request Jan 15, 2015
Avoid use of goog.array.clone with arrays.
@tschaub tschaub merged commit 10c715a into openlayers:master Jan 15, 2015
@tschaub tschaub deleted the array branch January 15, 2015 20:00
@bartvde
Copy link
Member

bartvde commented Jan 16, 2015

Should we write some of these up in our code guidelines?
Or are they written up somewhere already?
Also things like the recent goog.object.set with 2 arguments which should not be used.

@elemoine
Copy link
Member

Adding this to code guidelines would make sense to me. We already have a "coding style" section in the CONTRIBUTING.md file: https://github.com/openlayers/ol3/blob/master/CONTRIBUTING.md#follow-openlayers-3s-coding-style.

@bartvde
Copy link
Member

bartvde commented Jan 16, 2015

cool I'll go through recent tickets and add them

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.

3 participants