mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Clean up comments.
This commit is contained in:
parent
c87ce4de4c
commit
2c9e15b070
2 changed files with 12 additions and 12 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue