mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
19 lines
329 B
JavaScript
19 lines
329 B
JavaScript
'use strict';
|
|
|
|
import alt from '../alt';
|
|
import PieceActions from '../actions/piece_actions';
|
|
|
|
|
|
class PieceStore {
|
|
constructor() {
|
|
this.piece = {};
|
|
this.bindActions(PieceActions);
|
|
}
|
|
|
|
onUpdatePiece(piece) {
|
|
this.piece = piece;
|
|
}
|
|
}
|
|
|
|
export default alt.createStore(PieceStore, 'PieceStore');
|