mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Deselect symbol definitions when setting them, to follow unit tests.
This commit is contained in:
parent
18572276c5
commit
1cc3adfd64
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ var Symbol = this.Symbol = Base.extend(/** @lends Symbol# */{
|
|||
this._definition = item;
|
||||
// Remove item from DOM, as it's embedded in Symbol now.
|
||||
item.remove();
|
||||
item.setSelected(false);
|
||||
// Move position to 0, 0, so it's centered when placed.
|
||||
item.setPosition(new Point());
|
||||
item._parentSymbol = this;
|
||||
|
|
Loading…
Reference in a new issue