mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
add documentation
This commit is contained in:
parent
ada7df25a7
commit
bbb0bb15b6
@ -138,6 +138,10 @@ class EditionListStore {
|
|||||||
show: this.isEditionListOpenForPieceId[pieceId] ? !this.isEditionListOpenForPieceId[pieceId].show : true
|
show: this.isEditionListOpenForPieceId[pieceId] ? !this.isEditionListOpenForPieceId[pieceId].show : true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// When loading all editions of a piece, closing the table and then applying the filter
|
||||||
|
// the merge fails, as the edition list is not refreshed when closed.
|
||||||
|
// Therefore in the case of a filter application when closed, we need to reload the
|
||||||
|
// edition list
|
||||||
if(!this.isEditionListOpenForPieceId[pieceId].show) {
|
if(!this.isEditionListOpenForPieceId[pieceId].show) {
|
||||||
// to clear an array, david walsh recommends to just set it's length to zero
|
// to clear an array, david walsh recommends to just set it's length to zero
|
||||||
// http://davidwalsh.name/empty-array
|
// http://davidwalsh.name/empty-array
|
||||||
|
Loading…
Reference in New Issue
Block a user