Skip to content
Browse files

Converted tabs to spaces

  • Loading branch information...
1 parent b54e214 commit 8680897c42b22e3d476897336561ff297c7dc8fb @ismyrnow committed
Showing with 17 additions and 17 deletions.
  1. +17 −17 src/leaflet.groupedlayercontrol.js
View
34 src/leaflet.groupedlayercontrol.js
@@ -32,16 +32,16 @@ L.Control.GroupedLayers = L.Control.extend({
this._update();
map
- .on('layeradd', this._onLayerChange, this)
- .on('layerremove', this._onLayerChange, this);
+ .on('layeradd', this._onLayerChange, this)
+ .on('layerremove', this._onLayerChange, this);
return this._container;
},
onRemove: function (map) {
map
- .off('layeradd', this._onLayerChange)
- .off('layerremove', this._onLayerChange);
+ .off('layeradd', this._onLayerChange)
+ .off('layerremove', this._onLayerChange);
},
addBaseLayer: function (layer, name) {
@@ -65,7 +65,7 @@ L.Control.GroupedLayers = L.Control.extend({
_initLayout: function () {
var className = 'leaflet-control-layers',
- container = this._container = L.DomUtil.create('div', className);
+ container = this._container = L.DomUtil.create('div', className);
//Makes this work on IE10 Touch devices by stopping it from firing a mouseout event when the touch is released
container.setAttribute('aria-haspopup', true);
@@ -82,8 +82,8 @@ L.Control.GroupedLayers = L.Control.extend({
if (this.options.collapsed) {
if (!L.Browser.android) {
L.DomEvent
- .on(container, 'mouseover', this._expand, this)
- .on(container, 'mouseout', this._collapse, this);
+ .on(container, 'mouseover', this._expand, this)
+ .on(container, 'mouseout', this._collapse, this);
}
var link = this._layersLink = L.DomUtil.create('a', className + '-toggle', container);
link.href = '#';
@@ -91,8 +91,8 @@ L.Control.GroupedLayers = L.Control.extend({
if (L.Browser.touch) {
L.DomEvent
- .on(link, 'click', L.DomEvent.stop)
- .on(link, 'click', this._expand, this);
+ .on(link, 'click', L.DomEvent.stop)
+ .on(link, 'click', this._expand, this);
}
else {
L.DomEvent.on(link, 'focus', this._expand, this);
@@ -149,8 +149,8 @@ L.Control.GroupedLayers = L.Control.extend({
this._domGroups.length = 0;
var baseLayersPresent = false,
- overlaysPresent = false,
- i, obj;
+ overlaysPresent = false,
+ i, obj;
for (i in this._layers) {
obj = this._layers[i];
@@ -172,8 +172,8 @@ L.Control.GroupedLayers = L.Control.extend({
}
var type = obj.overlay ?
- (e.type === 'layeradd' ? 'overlayadd' : 'overlayremove') :
- (e.type === 'layeradd' ? 'baselayerchange' : null);
+ (e.type === 'layeradd' ? 'overlayadd' : 'overlayremove') :
+ (e.type === 'layeradd' ? 'baselayerchange' : null);
if (type) {
this._map.fire(type, obj);
@@ -197,8 +197,8 @@ L.Control.GroupedLayers = L.Control.extend({
_addItem: function (obj) {
var label = document.createElement('label'),
- input,
- checked = this._map.hasLayer(obj.layer);
+ input,
+ checked = this._map.hasLayer(obj.layer);
if (obj.overlay) {
input = document.createElement('input');
@@ -252,8 +252,8 @@ L.Control.GroupedLayers = L.Control.extend({
_onInputClick: function () {
var i, input, obj,
- inputs = this._form.getElementsByTagName('input'),
- inputsLen = inputs.length;
+ inputs = this._form.getElementsByTagName('input'),
+ inputsLen = inputs.length;
this._handlingClick = true;

0 comments on commit 8680897

Please sign in to comment.
Something went wrong with that request. Please try again.