Remove unnecessary newlines

This commit is contained in:
Frederic Junod
2014-07-22 14:40:22 +02:00
parent 8e106a2c98
commit 7b7788973b
5 changed files with 8 additions and 16 deletions

View File

@@ -158,8 +158,7 @@ goog.inherits(ol.control.Attribution, ol.control.Control);
* @param {?olx.FrameState} frameState Frame state. * @param {?olx.FrameState} frameState Frame state.
* @return {Array.<Object.<string, ol.Attribution>>} Attributions. * @return {Array.<Object.<string, ol.Attribution>>} Attributions.
*/ */
ol.control.Attribution.prototype.getSourceAttributions = ol.control.Attribution.prototype.getSourceAttributions = function(frameState) {
function(frameState) {
var i, ii, j, jj, tileRanges, source, sourceAttribution, var i, ii, j, jj, tileRanges, source, sourceAttribution,
sourceAttributionKey, sourceAttributions, sourceKey; sourceAttributionKey, sourceAttributions, sourceKey;
var layerStatesArray = frameState.layerStatesArray; var layerStatesArray = frameState.layerStatesArray;

View File

@@ -152,8 +152,7 @@ ol.interaction.DragBox.prototype.onBoxEnd = goog.nullFunction;
/** /**
* @inheritDoc * @inheritDoc
*/ */
ol.interaction.DragBox.prototype.handlePointerUp = ol.interaction.DragBox.prototype.handlePointerUp = function(mapBrowserEvent) {
function(mapBrowserEvent) {
if (!ol.events.condition.mouseOnly(mapBrowserEvent)) { if (!ol.events.condition.mouseOnly(mapBrowserEvent)) {
return true; return true;
} }
@@ -176,8 +175,7 @@ ol.interaction.DragBox.prototype.handlePointerUp =
/** /**
* @inheritDoc * @inheritDoc
*/ */
ol.interaction.DragBox.prototype.handlePointerDown = ol.interaction.DragBox.prototype.handlePointerDown = function(mapBrowserEvent) {
function(mapBrowserEvent) {
if (!ol.events.condition.mouseOnly(mapBrowserEvent)) { if (!ol.events.condition.mouseOnly(mapBrowserEvent)) {
return false; return false;
} }

View File

@@ -91,8 +91,7 @@ ol.interaction.DragPan.prototype.handlePointerDrag = function(mapBrowserEvent) {
/** /**
* @inheritDoc * @inheritDoc
*/ */
ol.interaction.DragPan.prototype.handlePointerUp = ol.interaction.DragPan.prototype.handlePointerUp = function(mapBrowserEvent) {
function(mapBrowserEvent) {
var map = mapBrowserEvent.map; var map = mapBrowserEvent.map;
var view = map.getView(); var view = map.getView();
if (this.targetPointers.length === 0) { if (this.targetPointers.length === 0) {
@@ -124,8 +123,7 @@ ol.interaction.DragPan.prototype.handlePointerUp =
/** /**
* @inheritDoc * @inheritDoc
*/ */
ol.interaction.DragPan.prototype.handlePointerDown = ol.interaction.DragPan.prototype.handlePointerDown = function(mapBrowserEvent) {
function(mapBrowserEvent) {
if (this.targetPointers.length > 0 && this.condition_(mapBrowserEvent)) { if (this.targetPointers.length > 0 && this.condition_(mapBrowserEvent)) {
var map = mapBrowserEvent.map; var map = mapBrowserEvent.map;
var view = map.getView(); var view = map.getView();

View File

@@ -74,8 +74,7 @@ ol.interaction.Interaction.prototype.setMap = function(map) {
* @param {ol.Coordinate} delta Delta. * @param {ol.Coordinate} delta Delta.
* @param {number=} opt_duration Duration. * @param {number=} opt_duration Duration.
*/ */
ol.interaction.Interaction.pan = function( ol.interaction.Interaction.pan = function(map, view, delta, opt_duration) {
map, view, delta, opt_duration) {
var currentCenter = view.getCenter(); var currentCenter = view.getCenter();
if (goog.isDef(currentCenter)) { if (goog.isDef(currentCenter)) {
if (goog.isDef(opt_duration) && opt_duration > 0) { if (goog.isDef(opt_duration) && opt_duration > 0) {

View File

@@ -689,8 +689,7 @@ ol.Map.prototype.getInteractions = function() {
* @api stable * @api stable
*/ */
ol.Map.prototype.getLayerGroup = function() { ol.Map.prototype.getLayerGroup = function() {
return /** @type {ol.layer.Group} */ ( return /** @type {ol.layer.Group} */ (this.get(ol.MapProperty.LAYERGROUP));
this.get(ol.MapProperty.LAYERGROUP));
}; };
goog.exportProperty( goog.exportProperty(
ol.Map.prototype, ol.Map.prototype,
@@ -1357,8 +1356,7 @@ ol.Map.prototype.updateSize = function() {
/** /**
* @type {Element} * @type {Element}
*/ */
var targetElement = goog.isDef(target) ? var targetElement = goog.isDef(target) ? goog.dom.getElement(target) : null;
goog.dom.getElement(target) : null;
if (goog.isNull(targetElement)) { if (goog.isNull(targetElement)) {
this.setSize(undefined); this.setSize(undefined);