Simplify code.

This commit is contained in:
Jürg Lehni 2011-06-14 15:36:01 +01:00
parent c4b3d1c82a
commit e670c262c3

View file

@ -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;
},