From 08f3ac197b78aad5a18bfe897a750111f5d2c18f Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 21 May 2011 21:33:43 +0200 Subject: [PATCH] Symbol#setDefinition: fix accidental beans access and add comment. --- src/project/Symbol.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/project/Symbol.js b/src/project/Symbol.js index c750035c..779b99dd 100644 --- a/src/project/Symbol.js +++ b/src/project/Symbol.js @@ -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());