mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Simplify code.
This commit is contained in:
parent
c4b3d1c82a
commit
e670c262c3
1 changed files with 1 additions and 2 deletions
|
@ -217,10 +217,9 @@ var Item = this.Item = Base.extend({
|
|||
*/
|
||||
isSelected: function() {
|
||||
if (this._children) {
|
||||
for (var i = 0, l = this._children.length; i < l; i++) {
|
||||
for (var i = 0, l = this._children.length; i < l; i++)
|
||||
if (this._children[i].isSelected())
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return this._selected;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue