Skip to content

Commit

Permalink
Indentation rules
Browse files Browse the repository at this point in the history
And make sure .editorconfig accounts for html
documents as well.
  • Loading branch information
tristen committed Feb 11, 2016
1 parent 39bdbe5 commit b7d176f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[*.js]
[*.{js,html}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
6 changes: 3 additions & 3 deletions docs/_posts/examples/3400-01-19-using-featuresin.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@
if (err) console.warn(err);

if (features.length >= 1000) {
return window.alert('Select a smaller number of features');
return window.alert('Select a smaller number of features');
}

// Run through the selected features and set a filter
// to match features with unique FIPS codes to activate
// the `counties-highlighted` layer.
var filter = features.reduce(function(memo, feature) {
memo.push(feature.properties.FIPS);
return memo;
memo.push(feature.properties.FIPS);
return memo;
}, ['in', 'FIPS']);

map.setFilter("counties-highlighted", filter);
Expand Down

0 comments on commit b7d176f

Please sign in to comment.