From ec0484e798c4b8fdf3bb8b711a6af69137d52059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 20 May 2011 08:55:44 +0100 Subject: [PATCH] Define Symbol#clone(), needs testing. --- src/project/Symbol.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/project/Symbol.js b/src/project/Symbol.js index a7b1aa43..32ea7f94 100644 --- a/src/project/Symbol.js +++ b/src/project/Symbol.js @@ -24,10 +24,11 @@ var Symbol = this.Symbol = Base.extend({ }, clone: function() { - // TODO: Implement! - return this.base(); + return new Symbol(this._definition.clone()); }, + // TODO: remove() + getDefinition: function() { return this._definition; }, @@ -35,9 +36,7 @@ var Symbol = this.Symbol = Base.extend({ setDefinition: function(item) { this._definition = item; item._removeFromParent(); + // Move position to 0, 0. TODO: Why? item.setPosition(new Point()); } - - // TODO: - // remove() });