mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Symbol#setDefinition: fix accidental beans access and add comment.
This commit is contained in:
parent
2f7a98f7d6
commit
08f3ac197b
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ var Symbol = this.Symbol = Base.extend({
|
|||
|
||||
setDefinition: function(item) {
|
||||
this._definition = item;
|
||||
item.selected = false;
|
||||
// Deselect the item, as PlacedSymbol has its own selection.
|
||||
item.setSelected(false);
|
||||
item._removeFromParent();
|
||||
// Move position to 0, 0. TODO: Why?
|
||||
item.setPosition(new Point());
|
||||
|
|
Loading…
Reference in a new issue