Rename _removeFromNamed to _removeNamed.

This commit is contained in:
Jürg Lehni 2013-10-08 20:25:26 +02:00
parent 509ac48951
commit 921a68e4a2

View file

@ -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
// parent's children object:
if (this._name)
this._removeFromNamed();
this._removeNamed();
if (name && this._parent) {
var children = this._parent._children,
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.
*/
_removeFromNamed: function() {
_removeNamed: function() {
var children = this._parent._children,
namedChildren = this._parent._namedChildren,
name = this._name,
@ -1729,7 +1729,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
_remove: function(notify) {
if (this._parent) {
if (this._name)
this._removeFromNamed();
this._removeNamed();
if (this._index != null)
Base.splice(this._parent._children, null, this._index, 1);
// Notify parent of changed hierarchy