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

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