зеркало из https://github.com/mozilla/pjs.git
- venkman only -
reset childIndex and parentRecord on a removed tree item
This commit is contained in:
Родитель
b64a4504c3
Коммит
97bbea59ab
|
@ -536,6 +536,8 @@ function tovr_remchild (index)
|
||||||
|
|
||||||
var fpDelta = -this.childData[index].visualFootprint;
|
var fpDelta = -this.childData[index].visualFootprint;
|
||||||
var changeStart = this.childData[index].calculateVisualRow();
|
var changeStart = this.childData[index].calculateVisualRow();
|
||||||
|
this.childData[index].childIndex = -1;
|
||||||
|
delete this.childData[index].parentRecord;
|
||||||
arrayRemoveAt (this.childData, index);
|
arrayRemoveAt (this.childData, index);
|
||||||
this.invalidateCache();
|
this.invalidateCache();
|
||||||
this.onVisualFootprintChanged (changeStart, fpDelta);
|
this.onVisualFootprintChanged (changeStart, fpDelta);
|
||||||
|
|
|
@ -536,6 +536,8 @@ function tovr_remchild (index)
|
||||||
|
|
||||||
var fpDelta = -this.childData[index].visualFootprint;
|
var fpDelta = -this.childData[index].visualFootprint;
|
||||||
var changeStart = this.childData[index].calculateVisualRow();
|
var changeStart = this.childData[index].calculateVisualRow();
|
||||||
|
this.childData[index].childIndex = -1;
|
||||||
|
delete this.childData[index].parentRecord;
|
||||||
arrayRemoveAt (this.childData, index);
|
arrayRemoveAt (this.childData, index);
|
||||||
this.invalidateCache();
|
this.invalidateCache();
|
||||||
this.onVisualFootprintChanged (changeStart, fpDelta);
|
this.onVisualFootprintChanged (changeStart, fpDelta);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче