1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-21 02:01:56 +01:00
onion/js/stores/piece_list_store.js

17 lines
408 B
JavaScript
Raw Normal View History

import alt from '../alt';
import PieceListActions from '../actions/piece_list_actions';
2015-05-20 16:44:45 +02:00
class PieceListStore {
constructor() {
2015-05-20 14:48:57 +02:00
this.itemList = []; // rename this to pieceList after figuring out AltContainer transform
this.bindActions(PieceListActions);
}
2015-05-20 14:48:57 +02:00
onUpdatePieceList(itemList) {
this.itemList = itemList;
}
};
export default alt.createStore(PieceListStore);