Fix error in Item#removeChildren().

This commit is contained in:
Jürg Lehni 2011-05-17 13:09:10 +01:00
parent 1c12c82df1
commit 515dbbb151

View file

@ -294,7 +294,7 @@ var Item = this.Item = Base.extend({
removeChildren: function() {
var removed = false;
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;
}
return removed;