mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-19 18:32:04 -04: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];
|
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];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue