Simplify Symbol#setDefinition().

This commit is contained in:
Jürg Lehni 2011-05-07 16:14:12 +01:00
parent 8c7b253bc2
commit 6c3fd5953a

View file

@ -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: