Use blocked scoped variables

In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
This commit is contained in:
Tim Schaub
2018-01-11 23:32:36 -07:00
parent 0bf2b04dee
commit ad62739a6e
684 changed files with 18120 additions and 18184 deletions
+3 -3
View File
@@ -13,9 +13,9 @@ import RegularShape from '../style/RegularShape.js';
* @extends {ol.style.RegularShape}
* @api
*/
var CircleStyle = function(opt_options) {
const CircleStyle = function(opt_options) {
var options = opt_options || {};
const options = opt_options || {};
RegularShape.call(this, {
points: Infinity,
@@ -38,7 +38,7 @@ inherits(CircleStyle, RegularShape);
* @api
*/
CircleStyle.prototype.clone = function() {
var style = new CircleStyle({
const style = new CircleStyle({
fill: this.getFill() ? this.getFill().clone() : undefined,
stroke: this.getStroke() ? this.getStroke().clone() : undefined,
radius: this.getRadius(),