From 7aaa4418b81a9d7686969715198b4b639c263b79 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 8 Nov 2016 11:52:54 +0500 Subject: Remove store constructor --- web/app/store/DeviceImages.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'web/app/store') 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 -- cgit v1.2.3