Deselect symbol definitions when setting them, to follow unit tests.

This commit is contained in:
Jürg Lehni 2013-01-20 15:58:15 -08:00
parent 18572276c5
commit 1cc3adfd64

View file

@ -113,6 +113,7 @@ var Symbol = this.Symbol = Base.extend(/** @lends Symbol# */{
this._definition = item;
// Remove item from DOM, as it's embedded in Symbol now.
item.remove();
item.setSelected(false);
// Move position to 0, 0, so it's centered when placed.
item.setPosition(new Point());
item._parentSymbol = this;