1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/piece_list_store.js
2015-05-20 16:44:45 +02:00

17 lines
408 B
JavaScript

import alt from '../alt';
import PieceListActions from '../actions/piece_list_actions';
class PieceListStore {
constructor() {
this.itemList = []; // rename this to pieceList after figuring out AltContainer transform
this.bindActions(PieceListActions);
}
onUpdatePieceList(itemList) {
this.itemList = itemList;
}
};
export default alt.createStore(PieceListStore);