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

17 lines
298 B
JavaScript
Raw Normal View History

2015-05-26 10:41:41 +02:00
import alt from '../alt';
import PieceAction from '../actions/piece_actions';
class PieceStore {
constructor() {
2015-05-26 13:33:35 +02:00
this.piece = {};
2015-05-26 10:41:41 +02:00
this.bindActions(PieceAction);
}
onUpdatePiece(piece) {
this.piece = piece;
}
2015-05-26 13:33:35 +02:00
}
2015-05-26 10:41:41 +02:00
export default alt.createStore(PieceStore);