mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Minor clean ups.
This commit is contained in:
parent
a9fbc41e15
commit
d12608c708
1 changed files with 5 additions and 5 deletions
|
@ -61,14 +61,14 @@ var Item = this.Item = Base.extend({
|
|||
delete namedChildren[name];
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* The name of the item.
|
||||
*/
|
||||
* The name of the item.
|
||||
*/
|
||||
getName: function() {
|
||||
return this._name;
|
||||
},
|
||||
|
||||
|
||||
setName: function(name) {
|
||||
var children = this._parent._children,
|
||||
namedChildren = this._parent._namedChildren;
|
||||
|
@ -83,7 +83,7 @@ var Item = this.Item = Base.extend({
|
|||
(namedChildren[name] = namedChildren[name] || []).push(this);
|
||||
children[name] = this;
|
||||
} else {
|
||||
delete children[name];
|
||||
delete children[name];
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue