Merge pull request #2545 from fredj/cleanup

Miscellaneous coding style fixes
This commit is contained in:
Frédéric Junod
2014-08-21 07:44:07 +02:00
6 changed files with 6 additions and 14 deletions

View File

@@ -94,8 +94,7 @@ ol.format.TopoJSON.concatenateArcs_ = function(indices, arcs) {
* @return {ol.geom.Point} Geometry.
* @private
*/
ol.format.TopoJSON.readPointGeometry_ =
function(object, scale, translate) {
ol.format.TopoJSON.readPointGeometry_ = function(object, scale, translate) {
var coordinates = object.coordinates;
if (!goog.isNull(scale) && !goog.isNull(translate)) {
ol.format.TopoJSON.transformVertex_(coordinates, scale, translate);

View File

@@ -21,8 +21,7 @@ goog.require('ol.TileState');
* @param {?string} crossOrigin Cross origin.
* @param {ol.TileLoadFunctionType} tileLoadFunction Tile load function.
*/
ol.ImageTile =
function(tileCoord, state, src, crossOrigin, tileLoadFunction) {
ol.ImageTile = function(tileCoord, state, src, crossOrigin, tileLoadFunction) {
goog.base(this, tileCoord, state);

View File

@@ -594,8 +594,7 @@ ol.render.canvas.Replay.prototype.drawText = goog.abstractMethod;
* @param {ol.geom.Geometry} geometry Geometry.
* @param {Object} data Opaque data object.
*/
ol.render.canvas.Replay.prototype.endGeometry =
function(geometry, data) {
ol.render.canvas.Replay.prototype.endGeometry = function(geometry, data) {
goog.asserts.assert(!goog.isNull(this.beginGeometryInstruction1_));
this.beginGeometryInstruction1_[3] = this.instructions.length;
this.beginGeometryInstruction1_ = null;

View File

@@ -92,9 +92,7 @@ ol.renderer.Map.prototype.createLayerRenderer = function(layer) {
* @inheritDoc
*/
ol.renderer.Map.prototype.disposeInternal = function() {
goog.object.forEach(this.layerRenderers_, function(layerRenderer) {
goog.dispose(layerRenderer);
});
goog.object.forEach(this.layerRenderers_, goog.dispose);
goog.base(this, 'disposeInternal');
};

View File

@@ -29,8 +29,6 @@ ol.source.TileVector = function(options) {
projection: options.projection
});
var tileGrid = options.tileGrid;
/**
* @private
* @type {ol.tilegrid.TileGrid}
@@ -47,7 +45,7 @@ ol.source.TileVector = function(options) {
* @private
* @type {ol.TileCoordTransformType}
*/
this.tileCoordTransform_ = tileGrid.createTileCoordTransform();
this.tileCoordTransform_ = this.tileGrid_.createTileCoordTransform();
/**
* @private

View File

@@ -156,8 +156,7 @@ ol.source.TileWMS.prototype.getGetFeatureInfoUrl =
}
var tileResolution = tileGrid.getResolution(tileCoord[0]);
var tileExtent = tileGrid.getTileCoordExtent(
tileCoord, this.tmpExtent_);
var tileExtent = tileGrid.getTileCoordExtent(tileCoord, this.tmpExtent_);
var tileSize = tileGrid.getTileSize(tileCoord[0]);
var gutter = this.gutter_;