mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Rename _removeFromNamed to _removeNamed.
This commit is contained in:
parent
509ac48951
commit
921a68e4a2
1 changed files with 3 additions and 3 deletions
|
@ -318,7 +318,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
// If the item already had a name, remove the reference to it from the
|
// If the item already had a name, remove the reference to it from the
|
||||||
// parent's children object:
|
// parent's children object:
|
||||||
if (this._name)
|
if (this._name)
|
||||||
this._removeFromNamed();
|
this._removeNamed();
|
||||||
if (name && this._parent) {
|
if (name && this._parent) {
|
||||||
var children = this._parent._children,
|
var children = this._parent._children,
|
||||||
namedChildren = this._parent._namedChildren,
|
namedChildren = this._parent._namedChildren,
|
||||||
|
@ -1700,7 +1700,7 @@ 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.
|
||||||
*/
|
*/
|
||||||
_removeFromNamed: function() {
|
_removeNamed: function() {
|
||||||
var children = this._parent._children,
|
var children = this._parent._children,
|
||||||
namedChildren = this._parent._namedChildren,
|
namedChildren = this._parent._namedChildren,
|
||||||
name = this._name,
|
name = this._name,
|
||||||
|
@ -1729,7 +1729,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
_remove: function(notify) {
|
_remove: function(notify) {
|
||||||
if (this._parent) {
|
if (this._parent) {
|
||||||
if (this._name)
|
if (this._name)
|
||||||
this._removeFromNamed();
|
this._removeNamed();
|
||||||
if (this._index != null)
|
if (this._index != null)
|
||||||
Base.splice(this._parent._children, null, this._index, 1);
|
Base.splice(this._parent._children, null, this._index, 1);
|
||||||
// Notify parent of changed hierarchy
|
// Notify parent of changed hierarchy
|
||||||
|
|
Loading…
Reference in a new issue