Remove lint
This commit is contained in:
@@ -371,8 +371,6 @@ ol.control.OverviewMap.prototype.updateBox_ = function() {
|
||||
|
||||
var ovview = ovmap.getView();
|
||||
|
||||
var ovmapSize = ovmap.getSize();
|
||||
|
||||
var rotation = view.getRotation();
|
||||
|
||||
var overlay = this.boxOverlay_;
|
||||
|
||||
@@ -315,7 +315,9 @@ ol.format.EsriJSON.writeLineStringGeometry_ = function(geometry, opt_options) {
|
||||
return /** @type {EsriJSONPolyline} */ ({
|
||||
hasZ: hasZM.hasZ,
|
||||
hasM: hasZM.hasM,
|
||||
paths: [/** @type {ol.geom.LineString} */ (geometry).getCoordinates()]
|
||||
paths: [
|
||||
/** @type {ol.geom.LineString} */ (geometry).getCoordinates()
|
||||
]
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -911,7 +911,6 @@ ol.format.GML3.prototype.writeRing_ = function(node, ring, objectStack) {
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.writeSurfaceOrPolygonMember_ = function(node, polygon, objectStack) {
|
||||
var context = objectStack[objectStack.length - 1];
|
||||
var child = this.GEOMETRY_NODE_FACTORY_(
|
||||
polygon, objectStack);
|
||||
if (child) {
|
||||
@@ -941,7 +940,6 @@ ol.format.GML3.prototype.writePointMember_ = function(node, point, objectStack)
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.writeLineStringOrCurveMember_ = function(node, line, objectStack) {
|
||||
var context = objectStack[objectStack.length - 1];
|
||||
var child = this.GEOMETRY_NODE_FACTORY_(line, objectStack);
|
||||
if (child) {
|
||||
node.appendChild(child);
|
||||
|
||||
@@ -709,7 +709,6 @@ ol.interaction.Modify.handleEvent = function(mapBrowserEvent) {
|
||||
if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) {
|
||||
if (mapBrowserEvent.type != ol.MapBrowserEvent.EventType.SINGLECLICK ||
|
||||
!this.ignoreNextSingleClick_) {
|
||||
var geometry = /** @type {ol.geom.Point} */ (this.vertexFeature_.getGeometry());
|
||||
handled = this.removePoint();
|
||||
} else {
|
||||
handled = true;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
goog.provide('ol.math');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Takes a number and clamps it to within the provided bounds.
|
||||
* @param {number} value The input number.
|
||||
|
||||
@@ -103,9 +103,6 @@ ol.renderer.dom.VectorLayer.prototype.clearFrame = function() {
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.renderer.dom.VectorLayer.prototype.composeFrame = function(frameState, layerState) {
|
||||
|
||||
var vectorLayer = /** @type {ol.layer.Vector} */ (this.getLayer());
|
||||
|
||||
var viewState = frameState.viewState;
|
||||
var viewCenter = viewState.center;
|
||||
var viewRotation = viewState.rotation;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"env": {
|
||||
"es6": true
|
||||
"es6": true,
|
||||
"mocha": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ const path = require('path');
|
||||
|
||||
const src = path.join(__dirname, '..', '..', 'src');
|
||||
|
||||
const PROVIDE_RE = /^goog.provide\('(.*)'\);/
|
||||
const PROVIDE_RE = /^goog.provide\('(.*)'\);/;
|
||||
|
||||
describe('each file', () => {
|
||||
|
||||
|
||||
@@ -672,7 +672,7 @@ describe('ol.format.WFS', function() {
|
||||
[-12240318, 6507071],
|
||||
[-12416429, 6604910]
|
||||
]]));
|
||||
var error = false;
|
||||
|
||||
expect(function() {
|
||||
format.writeTransaction(null, [updateFeature], null, {
|
||||
featureNS: 'http://foo',
|
||||
|
||||
@@ -29,7 +29,7 @@ describe('ol', function() {
|
||||
it('has a name', function() {
|
||||
var error = new ol.AssertionError(42);
|
||||
expect(error.name).to.be('AssertionError');
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@ describe('ol.structs.PriorityQueue', function() {
|
||||
if (!assertion) {
|
||||
throw new Error(message);
|
||||
}
|
||||
}
|
||||
};
|
||||
pq = new ol.structs.PriorityQueue(
|
||||
identity, identity);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user