mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix error in Item#removeChildren().
This commit is contained in:
parent
1c12c82df1
commit
515dbbb151
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ var Item = this.Item = Base.extend({
|
||||||
removeChildren: function() {
|
removeChildren: function() {
|
||||||
var removed = false;
|
var removed = false;
|
||||||
if (this._children) {
|
if (this._children) {
|
||||||
for (var i = this._children.length; i >= 0; i--)
|
for (var i = this._children.length - 1; i >= 0; i--)
|
||||||
removed = this._children[i].remove() || removed;
|
removed = this._children[i].remove() || removed;
|
||||||
}
|
}
|
||||||
return removed;
|
return removed;
|
||||||
|
|
Loading…
Reference in a new issue