Symbol#setDefinition: fix accidental beans access and add comment.

This commit is contained in:
Jonathan Puckey 2011-05-21 21:33:43 +02:00
parent 2f7a98f7d6
commit 08f3ac197b

View file

@ -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());