Selection err

This commit is contained in:
portree_kid 2020-07-10 21:42:44 +02:00
parent 79631004f8
commit d4aa4b09a0

View File

@ -8,10 +8,14 @@ const store = require('../store');
var $ = require('jquery');
L.HoldNode = L.Marker.extend({
select() {
this._icon.childNodes[0].style['background-color'] = 'red';
if(this._icon!==null) {
this._icon.childNodes[0].style['background-color'] = 'red';
}
},
deselect() {
this._icon.childNodes[0].style['background-color'] = '#4838cc';
if(this._icon!==null) {
this._icon.childNodes[0].style['background-color'] = '#4838cc';
}
},
addListeners: function () {
this.on('editable:drawing:move', function (event) {