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.
* @return {Array.<Object.<string, ol.Attribution>>} 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;

View File

@@ -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;
}

View File

@@ -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();

View File

@@ -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) {

View File

@@ -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);