chore(package): update closure-util to version 1.11.0

- Remove closure-util.json, we're now using the same library version as closure-util
 - Disable analyzerChecks errors from closure-compiler
 - Remove WheelEvent constants from externs (fixed upstream)
 - Activate the unnecessaryCasts compiler check
This commit is contained in:
greenkeeperio-bot
2016-02-22 08:12:37 -07:00
committed by Frederic Junod
parent 4e11a86b4e
commit 7e7d8ac4e2
8 changed files with 9 additions and 27 deletions

View File

@@ -1,3 +0,0 @@
{
"library_url": "https://github.com/google/closure-library/archive/5b25e65.zip"
}

View File

@@ -33,8 +33,8 @@
], ],
"jscomp_off": [ "jscomp_off": [
"useOfGoogBase", "useOfGoogBase",
"unnecessaryCasts",
"lintChecks", "lintChecks",
"analyzerChecks",
"missingProvide", "missingProvide",
"unknownDefines" "unknownDefines"
], ],

View File

@@ -34,8 +34,8 @@
], ],
"jscomp_off": [ "jscomp_off": [
"useOfGoogBase", "useOfGoogBase",
"unnecessaryCasts", "lintChecks",
"lintChecks" "analyzerChecks"
], ],
"extra_annotation_name": [ "extra_annotation_name": [
"api", "observable" "api", "observable"

View File

@@ -23,13 +23,8 @@
], ],
"jscomp_off": [ "jscomp_off": [
"useOfGoogBase", "useOfGoogBase",
"lintChecks" "lintChecks",
], "analyzerChecks"
"hide_warnings_for": [
"node_modules/closure-util"
],
"jscomp_warning": [
"unnecessaryCasts"
], ],
"extra_annotation_name": [ "extra_annotation_name": [
"api", "observable" "api", "observable"

View File

@@ -33,7 +33,7 @@ var map = new ol.Map({
}); });
function makeFractal(depth) { function makeFractal(depth) {
var geometry = /** @type {ol.geom.LineString} */ (triangle.clone()); var geometry = triangle.clone();
var graph = coordsToGraph(geometry.getCoordinates()); var graph = coordsToGraph(geometry.getCoordinates());
for (var i = 0; i < depth; ++i) { for (var i = 0; i < depth; ++i) {
var node = graph; var node = graph;

View File

@@ -243,10 +243,10 @@ function addInteraction() {
var geom = evt.target; var geom = evt.target;
var output; var output;
if (geom instanceof ol.geom.Polygon) { if (geom instanceof ol.geom.Polygon) {
output = formatArea(/** @type {ol.geom.Polygon} */ (geom)); output = formatArea(geom);
tooltipCoord = geom.getInteriorPoint().getCoordinates(); tooltipCoord = geom.getInteriorPoint().getCoordinates();
} else if (geom instanceof ol.geom.LineString) { } else if (geom instanceof ol.geom.LineString) {
output = formatLength(/** @type {ol.geom.LineString} */ (geom)); output = formatLength(geom);
tooltipCoord = geom.getLastCoordinate(); tooltipCoord = geom.getLastCoordinate();
} }
measureTooltipElement.innerHTML = output; measureTooltipElement.innerHTML = output;

View File

@@ -15,13 +15,3 @@
* @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property * @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property
*/ */
CSSProperties.prototype.touchAction; CSSProperties.prototype.touchAction;
/**
* @type {number}
*/
WheelEvent.DOM_DELTA_LINE;
/**
* @type {number}
*/
WheelEvent.DOM_DELTA_PIXEL;

View File

@@ -32,7 +32,7 @@
"dependencies": { "dependencies": {
"async": "1.5.2", "async": "1.5.2",
"browserify": "13.0.0", "browserify": "13.0.0",
"closure-util": "1.10.0", "closure-util": "1.11.0",
"derequire": "2.0.3", "derequire": "2.0.3",
"fs-extra": "0.26.5", "fs-extra": "0.26.5",
"glob": "6.0.4", "glob": "6.0.4",