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:
+1
-1
@@ -84,7 +84,7 @@ registerMultiple(PluginType.LAYER_RENDERER, [
|
||||
* @fires ol.render.Event#precompose
|
||||
* @api
|
||||
*/
|
||||
var Map = function(options) {
|
||||
const Map = function(options) {
|
||||
options = _ol_obj_.assign({}, options);
|
||||
if (!options.controls) {
|
||||
options.controls = defaultControls();
|
||||
|
||||
Reference in New Issue
Block a user