reset childIndex and parentRecord on a removed tree item
This commit is contained in:
rginda%netscape.com 2001-09-05 01:30:59 +00:00
Родитель c81f507039
Коммит 1521805007
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -536,6 +536,8 @@ function tovr_remchild (index)
var fpDelta = -this.childData[index].visualFootprint;
var changeStart = this.childData[index].calculateVisualRow();
this.childData[index].childIndex = -1;
delete this.childData[index].parentRecord;
arrayRemoveAt (this.childData, index);
this.invalidateCache();
this.onVisualFootprintChanged (changeStart, fpDelta);

Просмотреть файл

@ -536,6 +536,8 @@ function tovr_remchild (index)
var fpDelta = -this.childData[index].visualFootprint;
var changeStart = this.childData[index].calculateVisualRow();
this.childData[index].childIndex = -1;
delete this.childData[index].parentRecord;
arrayRemoveAt (this.childData, index);
this.invalidateCache();
this.onVisualFootprintChanged (changeStart, fpDelta);