Remove unnecessary type cast

This commit is contained in:
Frederic Junod
2014-08-29 08:55:47 +02:00
committed by Guillaume Beraudo
parent da2a291208
commit 4a21ad566a
3 changed files with 2 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ map.on('click', function(evt) {
var exportKMLElement = document.getElementById('export-kml');
if ('download' in exportKMLElement) {
var vectorSource = /** @type {ol.source.Vector} */ (vector.getSource());
var vectorSource = vector.getSource();
exportKMLElement.addEventListener('click', function(e) {
if (!exportKMLElement.href) {
var features = [];