Selection err
This commit is contained in:
parent
79631004f8
commit
d4aa4b09a0
@ -8,10 +8,14 @@ const store = require('../store');
|
|||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
L.HoldNode = L.Marker.extend({
|
L.HoldNode = L.Marker.extend({
|
||||||
select() {
|
select() {
|
||||||
this._icon.childNodes[0].style['background-color'] = 'red';
|
if(this._icon!==null) {
|
||||||
|
this._icon.childNodes[0].style['background-color'] = 'red';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deselect() {
|
deselect() {
|
||||||
this._icon.childNodes[0].style['background-color'] = '#4838cc';
|
if(this._icon!==null) {
|
||||||
|
this._icon.childNodes[0].style['background-color'] = '#4838cc';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
addListeners: function () {
|
addListeners: function () {
|
||||||
this.on('editable:drawing:move', function (event) {
|
this.on('editable:drawing:move', function (event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user