diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-08 11:52:54 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-08 11:52:54 +0500 |
commit | 7aaa4418b81a9d7686969715198b4b639c263b79 (patch) | |
tree | 871098940271f456210825f61b9b4ddb8663cab0 /web/app | |
parent | 8b5bbc7a899205a40e1d246862f54ecb4b939682 (diff) | |
download | trackermap-web-7aaa4418b81a9d7686969715198b4b639c263b79.tar.gz trackermap-web-7aaa4418b81a9d7686969715198b4b639c263b79.tar.bz2 trackermap-web-7aaa4418b81a9d7686969715198b4b639c263b79.zip |
Remove store constructor
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/store/DeviceImages.js | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js index 4e49482c..22a7872f 100644 --- a/web/app/store/DeviceImages.js +++ b/web/app/store/DeviceImages.js @@ -22,37 +22,30 @@ Ext.define('Traccar.store.DeviceImages', { data: [{ key: 'default', name: Strings.categoryDefault, - elementId: 'arrowSvg', + svg: document.getElementById('arrowSvg').contentDocument, rotateId: 'arrow', fillId: 'arrow', scale: 1 }, { key: 'car', name: Strings.categoryCar, - elementId: 'carSvg', + svg: document.getElementById('carSvg').contentDocument, fillId: 'path4149', rotateId: 'g4207', scale: 0.06, }, { key: 'bus', name: Strings.categoryBus, - elementId: 'busSvg', + svg: document.getElementById('busSvg').contentDocument, fillId: 'path4713', rotateId: 'layer2', scale: 0.12, }, { key: 'truck', name: Strings.categoryTruck, - elementId: 'truckSvg', + svg: document.getElementById('truckSvg').contentDocument, fillId: 'path4718', rotateId: 'layer2', scale: 0.1, - }], - - constructor: function() { - this.callParent(arguments); - this.config.data.forEach(function (device) { - device.svg = document.getElementById(device.elementId).contentDocument; - }); - } + }] });
\ No newline at end of file |