mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Only call _changed() if selection actually changes.
This commit is contained in:
parent
0063fdc98f
commit
9d2f8c5035
1 changed files with 1 additions and 1 deletions
|
@ -339,8 +339,8 @@ var Item = this.Item = Base.extend({
|
|||
} else if ((selected = !!selected) != this._selected) {
|
||||
this._selected = selected;
|
||||
this._project._updateSelection(this);
|
||||
this._changed(ChangeFlags.ATTRIBUTE | ChangeFlags.APPEARANCE);
|
||||
}
|
||||
this._changed(ChangeFlags.ATTRIBUTE | ChangeFlags.APPEARANCE);
|
||||
},
|
||||
|
||||
_selected: false,
|
||||
|
|
Loading…
Reference in a new issue