From 6c3fd5953a0ce5bc67607919c9caf06b0b828ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 May 2011 16:14:12 +0100 Subject: [PATCH] Simplify Symbol#setDefinition(). --- src/document/Symbol.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/Symbol.js b/src/document/Symbol.js index 3b8766c6..0c735580 100644 --- a/src/document/Symbol.js +++ b/src/document/Symbol.js @@ -29,8 +29,8 @@ var Symbol = this.Symbol = Base.extend({ setDefinition: function(item) { this._definition = item; - this._definition._removeFromParent(); - this._definition.setPosition(new Point(0, 0)); + item._removeFromParent(); + item.setPosition(new Point()); } // TODO: