From 7e7d8ac4e25fe9c123384f13d9ec34917073c209 Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Mon, 22 Feb 2016 08:12:37 -0700 Subject: [PATCH] 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 --- closure-util.json | 3 --- config/example.json | 2 +- config/examples-all.json | 4 ++-- config/ol.json | 9 ++------- examples/fractal.js | 2 +- examples/measure.js | 4 ++-- externs/closure-compiler.js | 10 ---------- package.json | 2 +- 8 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 closure-util.json diff --git a/closure-util.json b/closure-util.json deleted file mode 100644 index 4c10a7d569..0000000000 --- a/closure-util.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "library_url": "https://github.com/google/closure-library/archive/5b25e65.zip" -} diff --git a/config/example.json b/config/example.json index cea012bc99..bf4c36b8ad 100644 --- a/config/example.json +++ b/config/example.json @@ -33,8 +33,8 @@ ], "jscomp_off": [ "useOfGoogBase", - "unnecessaryCasts", "lintChecks", + "analyzerChecks", "missingProvide", "unknownDefines" ], diff --git a/config/examples-all.json b/config/examples-all.json index f7ced6c806..9fa8cad268 100644 --- a/config/examples-all.json +++ b/config/examples-all.json @@ -34,8 +34,8 @@ ], "jscomp_off": [ "useOfGoogBase", - "unnecessaryCasts", - "lintChecks" + "lintChecks", + "analyzerChecks" ], "extra_annotation_name": [ "api", "observable" diff --git a/config/ol.json b/config/ol.json index 3b6dbc1af0..a8c00a16e1 100644 --- a/config/ol.json +++ b/config/ol.json @@ -23,13 +23,8 @@ ], "jscomp_off": [ "useOfGoogBase", - "lintChecks" - ], - "hide_warnings_for": [ - "node_modules/closure-util" - ], - "jscomp_warning": [ - "unnecessaryCasts" + "lintChecks", + "analyzerChecks" ], "extra_annotation_name": [ "api", "observable" diff --git a/examples/fractal.js b/examples/fractal.js index fb0cbeabc1..c3e583dd82 100644 --- a/examples/fractal.js +++ b/examples/fractal.js @@ -33,7 +33,7 @@ var map = new ol.Map({ }); function makeFractal(depth) { - var geometry = /** @type {ol.geom.LineString} */ (triangle.clone()); + var geometry = triangle.clone(); var graph = coordsToGraph(geometry.getCoordinates()); for (var i = 0; i < depth; ++i) { var node = graph; diff --git a/examples/measure.js b/examples/measure.js index b637a74b74..85bebd3cc2 100644 --- a/examples/measure.js +++ b/examples/measure.js @@ -243,10 +243,10 @@ function addInteraction() { var geom = evt.target; var output; if (geom instanceof ol.geom.Polygon) { - output = formatArea(/** @type {ol.geom.Polygon} */ (geom)); + output = formatArea(geom); tooltipCoord = geom.getInteriorPoint().getCoordinates(); } else if (geom instanceof ol.geom.LineString) { - output = formatLength(/** @type {ol.geom.LineString} */ (geom)); + output = formatLength(geom); tooltipCoord = geom.getLastCoordinate(); } measureTooltipElement.innerHTML = output; diff --git a/externs/closure-compiler.js b/externs/closure-compiler.js index d51b19d762..7894661c23 100644 --- a/externs/closure-compiler.js +++ b/externs/closure-compiler.js @@ -15,13 +15,3 @@ * @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property */ CSSProperties.prototype.touchAction; - -/** - * @type {number} - */ -WheelEvent.DOM_DELTA_LINE; - -/** - * @type {number} - */ -WheelEvent.DOM_DELTA_PIXEL; diff --git a/package.json b/package.json index 715a69126b..b86ccb1bed 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "dependencies": { "async": "1.5.2", "browserify": "13.0.0", - "closure-util": "1.10.0", + "closure-util": "1.11.0", "derequire": "2.0.3", "fs-extra": "0.26.5", "glob": "6.0.4",