From 2c9e15b07014efe36e0603fa661db829e13c2e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 27 Sep 2014 22:53:00 +0200 Subject: [PATCH] Clean up comments. --- src/item/Item.js | 18 +++++++++--------- src/item/Layer.js | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 285fafc5..234ae8d9 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -2178,8 +2178,8 @@ var Item = Base.extend(Callback, /** @lends Item# */{ }, /** - * Removes the item from its parent's named children list. - */ + * Removes the item from its parent's named children list. + */ _removeNamed: function() { var parent = this._parent; if (parent) { @@ -2207,8 +2207,8 @@ var Item = Base.extend(Callback, /** @lends Item# */{ }, /** - * Removes the item from its parent's children list. - */ + * Removes the item from its parent's children list. + */ _remove: function(notifySelf, notifyParent) { var parent = this._parent; if (parent) { @@ -2234,11 +2234,11 @@ var Item = Base.extend(Callback, /** @lends Item# */{ }, /** - * Removes the item from the project. If the item has children, they are also - * removed. - * - * @return {Boolean} {@true if the item was removed} - */ + * Removes the item and all its children from the project. The item is not + * destroyed and can be inserted again after removal. + * + * @return {Boolean} {@true if the item was removed} + */ remove: function() { // Notify self and parent of change: return this._remove(true, true); diff --git a/src/item/Layer.js b/src/item/Layer.js index d617e49a..3fa0a465 100644 --- a/src/item/Layer.js +++ b/src/item/Layer.js @@ -78,9 +78,9 @@ var Layer = Group.extend(/** @lends Layer# */{ }, /** - * Removes the layer from its project's layers list - * or its parent's children list. - */ + * Removes the layer from its project's layers list + * or its parent's children list. + */ _remove: function _remove(notify) { if (this._parent) return _remove.base.call(this, notify);