1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/stores/coa_store.js

23 lines
360 B
JavaScript
Raw Normal View History

2015-06-25 14:39:39 +02:00
'use strict';
import { alt } from '../alt';
2015-06-25 14:39:39 +02:00
import CoaActions from '../actions/coa_actions';
class CoaStore {
constructor() {
this.coa = {};
this.bindActions(CoaActions);
}
onUpdateCoa(coa) {
this.coa = coa;
}
onFlushCoa() {
2015-07-22 00:30:51 +02:00
this.coa = {};
}
2015-06-25 14:39:39 +02:00
}
export default alt.createStore(CoaStore, 'CoaStore');