1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/piece_store.js

19 lines
313 B
JavaScript

'use strict';
import alt from '../alt';
import PieceAction from '../actions/piece_actions';
class PieceStore {
constructor() {
this.piece = {};
this.bindActions(PieceAction);
}
onUpdatePiece(piece) {
this.piece = piece;
}
}
export default alt.createStore(PieceStore);