mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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) {
|
setDefinition: function(item) {
|
||||||
this._definition = item;
|
this._definition = item;
|
||||||
this._definition._removeFromParent();
|
item._removeFromParent();
|
||||||
this._definition.setPosition(new Point(0, 0));
|
item.setPosition(new Point());
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
|
|
Loading…
Reference in a new issue