fix foldAll

This commit is contained in:
nightwing 2012-01-02 18:12:41 +04:00
commit 57bb9f767c

View file

@ -625,7 +625,7 @@ function Folding() {
this.foldAll = function(startRow, endRow) {
var foldWidgets = this.foldWidgets;
endRow = endRow || foldWidgets.length;
endRow = endRow || this.getLength();
for (var row = startRow || 0; row < endRow; row++) {
if (foldWidgets[row] == null)
foldWidgets[row] = this.getFoldWidget(row);