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
2015-06-08 18:14:25 +02:00

19 lines
315 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);