diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-31 13:20:19 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-31 13:20:19 -0700 |
commit | f5960bacc081068532fa7a3c899a0b3349b0c2f8 (patch) | |
tree | 192dbbe29e4e52edca938fcb70085d252ed21bba /web/app/view | |
parent | 5395dc657dc9f9d6d53b09b2bf69d6492d39cf1b (diff) | |
download | etbsa-traccar-web-f5960bacc081068532fa7a3c899a0b3349b0c2f8.tar.gz etbsa-traccar-web-f5960bacc081068532fa7a3c899a0b3349b0c2f8.tar.bz2 etbsa-traccar-web-f5960bacc081068532fa7a3c899a0b3349b0c2f8.zip |
Move variables
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/map/GeofenceMapController.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/map/GeofenceMapController.js b/web/app/view/map/GeofenceMapController.js index 237858a..31ab586 100644 --- a/web/app/view/map/GeofenceMapController.js +++ b/web/app/view/map/GeofenceMapController.js @@ -34,10 +34,11 @@ Ext.define('Traccar.view.map.GeofenceMapController', { }, onFileChange: function (fileField) { - var reader, parser, xml, segment, projection, points = [], view = this.getView(); + var reader, view = this.getView(); if (fileField.fileInputEl.dom.files.length > 0) { reader = new FileReader(); reader.onload = function () { + var parser, xml, segment, projection, points = []; parser = new DOMParser(); xml = parser.parseFromString(reader.result, 'text/xml'); segment = xml.getElementsByTagName('trkseg')[0]; |