mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Simplify Symbol#setDefinition().
This commit is contained in:
parent
8c7b253bc2
commit
6c3fd5953a
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ var Symbol = this.Symbol = Base.extend({
|
|||
|
||||
setDefinition: function(item) {
|
||||
this._definition = item;
|
||||
this._definition._removeFromParent();
|
||||
this._definition.setPosition(new Point(0, 0));
|
||||
item._removeFromParent();
|
||||
item.setPosition(new Point());
|
||||
}
|
||||
|
||||
// TODO:
|
||||
|
|
Loading…
Reference in a new issue