diff --git a/src/ol/control/attributioncontrol.js b/src/ol/control/attributioncontrol.js index 28e2f4a256..62592085d5 100644 --- a/src/ol/control/attributioncontrol.js +++ b/src/ol/control/attributioncontrol.js @@ -238,16 +238,14 @@ ol.control.Attribution.prototype.updateElement_ = function(frameState) { this.attributionElementRenderedVisible_[attributionKey] = true; } delete visibleAttributions[attributionKey]; - } - else if (attributionKey in hiddenAttributions) { + } else if (attributionKey in hiddenAttributions) { if (this.attributionElementRenderedVisible_[attributionKey]) { goog.style.setElementShown( this.attributionElements_[attributionKey], false); delete this.attributionElementRenderedVisible_[attributionKey]; } delete hiddenAttributions[attributionKey]; - } - else { + } else { goog.dom.removeNode(this.attributionElements_[attributionKey]); delete this.attributionElements_[attributionKey]; delete this.attributionElementRenderedVisible_[attributionKey]; diff --git a/src/ol/interaction/translateinteraction.js b/src/ol/interaction/translateinteraction.js index 3e9a38f0dd..4b669af7fa 100644 --- a/src/ol/interaction/translateinteraction.js +++ b/src/ol/interaction/translateinteraction.js @@ -195,8 +195,7 @@ ol.interaction.Translate.handleDragEvent_ = function(event) { * @this {ol.interaction.Translate} * @private */ -ol.interaction.Translate.handleMoveEvent_ = function(event) - { +ol.interaction.Translate.handleMoveEvent_ = function(event) { var elem = event.map.getTargetElement(); var intersectingFeature = event.map.forEachFeatureAtPixel(event.pixel, function(feature) { diff --git a/src/ol/render/canvas/canvasreplay.js b/src/ol/render/canvas/canvasreplay.js index 1bfcbd47b7..3300326576 100644 --- a/src/ol/render/canvas/canvasreplay.js +++ b/src/ol/render/canvas/canvasreplay.js @@ -2081,7 +2081,9 @@ ol.render.canvas.ReplayGroup.prototype.replayHitDetection_ = function( featureCallback, opt_hitExtent) { /** @type {Array.} */ var zs = Object.keys(this.replaysByZIndex_).map(Number); - zs.sort(function(a, b) { return b - a; }); + zs.sort(function(a, b) { + return b - a; + }); var i, ii, j, replays, replay, result; for (i = 0, ii = zs.length; i < ii; ++i) { diff --git a/src/ol/source/rastersource.js b/src/ol/source/rastersource.js index 8121573a69..6ee6e60ef7 100644 --- a/src/ol/source/rastersource.js +++ b/src/ol/source/rastersource.js @@ -78,7 +78,9 @@ ol.source.Raster = function(options) { * @type {ol.TileQueue} */ this.tileQueue_ = new ol.TileQueue( - function() { return 1; }, + function() { + return 1; + }, goog.bind(this.changed, this)); var layerStatesArray = ol.source.Raster.getLayerStatesArray_(this.renderers_); diff --git a/src/ol/source/tilearcgisrestsource.js b/src/ol/source/tilearcgisrestsource.js index b4afd52cc0..410ef2373f 100644 --- a/src/ol/source/tilearcgisrestsource.js +++ b/src/ol/source/tilearcgisrestsource.js @@ -121,11 +121,9 @@ ol.source.TileArcGISRest.prototype.getRequestUrl_ = // If a MapServer, use export. If an ImageServer, use exportImage. if (goog.string.endsWith(url, 'MapServer/')) { url = url + 'export'; - } - else if (goog.string.endsWith(url, 'ImageServer/')) { + } else if (goog.string.endsWith(url, 'ImageServer/')) { url = url + 'exportImage'; - } - else { + } else { goog.asserts.fail('Unknown Rest Service', url); }