diff --git a/src/ol/control/attributioncontrol.js b/src/ol/control/attributioncontrol.js index dd1bf98036..d12e054404 100644 --- a/src/ol/control/attributioncontrol.js +++ b/src/ol/control/attributioncontrol.js @@ -158,8 +158,7 @@ goog.inherits(ol.control.Attribution, ol.control.Control); * @param {?olx.FrameState} frameState Frame state. * @return {Array.>} Attributions. */ -ol.control.Attribution.prototype.getSourceAttributions = - function(frameState) { +ol.control.Attribution.prototype.getSourceAttributions = function(frameState) { var i, ii, j, jj, tileRanges, source, sourceAttribution, sourceAttributionKey, sourceAttributions, sourceKey; var layerStatesArray = frameState.layerStatesArray; diff --git a/src/ol/interaction/dragboxinteraction.js b/src/ol/interaction/dragboxinteraction.js index 3a455e0ded..0bb34da53e 100644 --- a/src/ol/interaction/dragboxinteraction.js +++ b/src/ol/interaction/dragboxinteraction.js @@ -152,8 +152,7 @@ ol.interaction.DragBox.prototype.onBoxEnd = goog.nullFunction; /** * @inheritDoc */ -ol.interaction.DragBox.prototype.handlePointerUp = - function(mapBrowserEvent) { +ol.interaction.DragBox.prototype.handlePointerUp = function(mapBrowserEvent) { if (!ol.events.condition.mouseOnly(mapBrowserEvent)) { return true; } @@ -176,8 +175,7 @@ ol.interaction.DragBox.prototype.handlePointerUp = /** * @inheritDoc */ -ol.interaction.DragBox.prototype.handlePointerDown = - function(mapBrowserEvent) { +ol.interaction.DragBox.prototype.handlePointerDown = function(mapBrowserEvent) { if (!ol.events.condition.mouseOnly(mapBrowserEvent)) { return false; } diff --git a/src/ol/interaction/dragpaninteraction.js b/src/ol/interaction/dragpaninteraction.js index a1c8efbe58..ec90c4623b 100644 --- a/src/ol/interaction/dragpaninteraction.js +++ b/src/ol/interaction/dragpaninteraction.js @@ -91,8 +91,7 @@ ol.interaction.DragPan.prototype.handlePointerDrag = function(mapBrowserEvent) { /** * @inheritDoc */ -ol.interaction.DragPan.prototype.handlePointerUp = - function(mapBrowserEvent) { +ol.interaction.DragPan.prototype.handlePointerUp = function(mapBrowserEvent) { var map = mapBrowserEvent.map; var view = map.getView(); if (this.targetPointers.length === 0) { @@ -124,8 +123,7 @@ ol.interaction.DragPan.prototype.handlePointerUp = /** * @inheritDoc */ -ol.interaction.DragPan.prototype.handlePointerDown = - function(mapBrowserEvent) { +ol.interaction.DragPan.prototype.handlePointerDown = function(mapBrowserEvent) { if (this.targetPointers.length > 0 && this.condition_(mapBrowserEvent)) { var map = mapBrowserEvent.map; var view = map.getView(); diff --git a/src/ol/interaction/interaction.js b/src/ol/interaction/interaction.js index 0899e56141..11acb63db1 100644 --- a/src/ol/interaction/interaction.js +++ b/src/ol/interaction/interaction.js @@ -74,8 +74,7 @@ ol.interaction.Interaction.prototype.setMap = function(map) { * @param {ol.Coordinate} delta Delta. * @param {number=} opt_duration Duration. */ -ol.interaction.Interaction.pan = function( - map, view, delta, opt_duration) { +ol.interaction.Interaction.pan = function(map, view, delta, opt_duration) { var currentCenter = view.getCenter(); if (goog.isDef(currentCenter)) { if (goog.isDef(opt_duration) && opt_duration > 0) { diff --git a/src/ol/map.js b/src/ol/map.js index ba31cff730..5b52b621ce 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -689,8 +689,7 @@ ol.Map.prototype.getInteractions = function() { * @api stable */ ol.Map.prototype.getLayerGroup = function() { - return /** @type {ol.layer.Group} */ ( - this.get(ol.MapProperty.LAYERGROUP)); + return /** @type {ol.layer.Group} */ (this.get(ol.MapProperty.LAYERGROUP)); }; goog.exportProperty( ol.Map.prototype, @@ -1357,8 +1356,7 @@ ol.Map.prototype.updateSize = function() { /** * @type {Element} */ - var targetElement = goog.isDef(target) ? - goog.dom.getElement(target) : null; + var targetElement = goog.isDef(target) ? goog.dom.getElement(target) : null; if (goog.isNull(targetElement)) { this.setSize(undefined);