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 ovview = ovmap.getView();
var ovmapSize = ovmap.getSize();
var rotation = view.getRotation(); var rotation = view.getRotation();
var overlay = this.boxOverlay_; var overlay = this.boxOverlay_;

View File

@@ -315,7 +315,9 @@ ol.format.EsriJSON.writeLineStringGeometry_ = function(geometry, opt_options) {
return /** @type {EsriJSONPolyline} */ ({ return /** @type {EsriJSONPolyline} */ ({
hasZ: hasZM.hasZ, hasZ: hasZM.hasZ,
hasM: hasZM.hasM, 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 * @private
*/ */
ol.format.GML3.prototype.writeSurfaceOrPolygonMember_ = function(node, polygon, objectStack) { ol.format.GML3.prototype.writeSurfaceOrPolygonMember_ = function(node, polygon, objectStack) {
var context = objectStack[objectStack.length - 1];
var child = this.GEOMETRY_NODE_FACTORY_( var child = this.GEOMETRY_NODE_FACTORY_(
polygon, objectStack); polygon, objectStack);
if (child) { if (child) {
@@ -941,7 +940,6 @@ ol.format.GML3.prototype.writePointMember_ = function(node, point, objectStack)
* @private * @private
*/ */
ol.format.GML3.prototype.writeLineStringOrCurveMember_ = function(node, line, objectStack) { ol.format.GML3.prototype.writeLineStringOrCurveMember_ = function(node, line, objectStack) {
var context = objectStack[objectStack.length - 1];
var child = this.GEOMETRY_NODE_FACTORY_(line, objectStack); var child = this.GEOMETRY_NODE_FACTORY_(line, objectStack);
if (child) { if (child) {
node.appendChild(child); node.appendChild(child);

View File

@@ -709,7 +709,6 @@ ol.interaction.Modify.handleEvent = function(mapBrowserEvent) {
if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) { if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) {
if (mapBrowserEvent.type != ol.MapBrowserEvent.EventType.SINGLECLICK || if (mapBrowserEvent.type != ol.MapBrowserEvent.EventType.SINGLECLICK ||
!this.ignoreNextSingleClick_) { !this.ignoreNextSingleClick_) {
var geometry = /** @type {ol.geom.Point} */ (this.vertexFeature_.getGeometry());
handled = this.removePoint(); handled = this.removePoint();
} else { } else {
handled = true; handled = true;

View File

@@ -1,7 +1,6 @@
goog.provide('ol.math'); goog.provide('ol.math');
/** /**
* Takes a number and clamps it to within the provided bounds. * Takes a number and clamps it to within the provided bounds.
* @param {number} value The input number. * @param {number} value The input number.

View File

@@ -103,9 +103,6 @@ ol.renderer.dom.VectorLayer.prototype.clearFrame = function() {
* @inheritDoc * @inheritDoc
*/ */
ol.renderer.dom.VectorLayer.prototype.composeFrame = function(frameState, layerState) { ol.renderer.dom.VectorLayer.prototype.composeFrame = function(frameState, layerState) {
var vectorLayer = /** @type {ol.layer.Vector} */ (this.getLayer());
var viewState = frameState.viewState; var viewState = frameState.viewState;
var viewCenter = viewState.center; var viewCenter = viewState.center;
var viewRotation = viewState.rotation; var viewRotation = viewState.rotation;

View File

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

View File

@@ -5,7 +5,7 @@ const path = require('path');
const src = path.join(__dirname, '..', '..', 'src'); const src = path.join(__dirname, '..', '..', 'src');
const PROVIDE_RE = /^goog.provide\('(.*)'\);/ const PROVIDE_RE = /^goog.provide\('(.*)'\);/;
describe('each file', () => { describe('each file', () => {

View File

@@ -672,7 +672,7 @@ describe('ol.format.WFS', function() {
[-12240318, 6507071], [-12240318, 6507071],
[-12416429, 6604910] [-12416429, 6604910]
]])); ]]));
var error = false;
expect(function() { expect(function() {
format.writeTransaction(null, [updateFeature], null, { format.writeTransaction(null, [updateFeature], null, {
featureNS: 'http://foo', featureNS: 'http://foo',

View File

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

View File

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