check the way for checking being marked

This commit is contained in:
Val Erastov 2016-11-28 20:59:59 -08:00
parent 61bf3ec671
commit 9ed5cc8c1e

View file

@ -372,12 +372,9 @@ Viewer.prototype.mark = function(obj, style) {
}
obj.marked = style;
for (let i = 0; i < this.selected.length; i++) {
if (obj.id == this.selected[i].id) {
return;
}
if (this.selected.indexOf(obj) == -1) {
this.selected.push(obj);
}
this.selected.push(obj);
};
Viewer.prototype.getActiveLayer = function() {