mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
16 lines
341 B
JavaScript
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);
|