Minor clean ups.

This commit is contained in:
Jürg Lehni 2011-05-15 18:53:09 +01:00
parent a9fbc41e15
commit d12608c708

View file

@ -61,14 +61,14 @@ var Item = this.Item = Base.extend({
delete namedChildren[name]; delete namedChildren[name];
} }
}, },
/** /**
* The name of the item. * The name of the item.
*/ */
getName: function() { getName: function() {
return this._name; return this._name;
}, },
setName: function(name) { setName: function(name) {
var children = this._parent._children, var children = this._parent._children,
namedChildren = this._parent._namedChildren; namedChildren = this._parent._namedChildren;
@ -83,7 +83,7 @@ var Item = this.Item = Base.extend({
(namedChildren[name] = namedChildren[name] || []).push(this); (namedChildren[name] = namedChildren[name] || []).push(this);
children[name] = this; children[name] = this;
} else { } else {
delete children[name]; delete children[name];
} }
}, },