Remove lint

This commit is contained in:
Tim Schaub
2016-08-07 13:28:19 -06:00
parent 4373f1bd54
commit feb7713225
11 changed files with 9 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -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.

View File

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

View File

@@ -1,5 +1,6 @@
{
"env": {
"es6": true
"es6": true,
"mocha": true
}
}

View File

@@ -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', () => {

View 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',

View File

@@ -29,7 +29,7 @@ describe('ol', function() {
it('has a name', function() {
var error = new ol.AssertionError(42);
expect(error.name).to.be('AssertionError');
})
});
});
});

View File

@@ -16,7 +16,7 @@ describe('ol.structs.PriorityQueue', function() {
if (!assertion) {
throw new Error(message);
}
}
};
pq = new ol.structs.PriorityQueue(
identity, identity);
});