1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/coa_store.js
2015-07-22 00:30:51 +02:00

23 lines
383 B
JavaScript

'use strict';
import alt from '../alt';
import CoaActions from '../actions/coa_actions';
class CoaStore {
constructor() {
this.coa = {};
this.bindActions(CoaActions);
}
onUpdateCoa(coa) {
this.coa = coa;
}
onErrorCoa(err) {
this.coa = {};
//this.coa = err
}
}
export default alt.createStore(CoaStore, 'CoaStore');