1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/js/stores/piece_list_store.js

16 lines
341 B
JavaScript

import alt from '../alt';
import PieceListActions from '../actions/piece_list_actions';
class PieceListStore {
constructor() {
this.pieceList = [];
this.bindActions(PieceListActions);
}
onUpdatePieceList(pieceList) {
this.pieceList = pieceList;
}
};
export default alt.createStore(PieceListStore);