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

19 lines
355 B
JavaScript
Raw Normal View History

'use strict';
import { alt } from '../alt';
import EditionActions from '../actions/edition_actions';
2015-05-26 13:48:46 +02:00
class EditionStore {
constructor() {
2015-05-26 13:48:46 +02:00
this.edition = {};
this.bindActions(EditionActions);
}
2015-05-26 13:48:46 +02:00
onUpdateEdition(edition) {
this.edition = edition;
}
}
2015-06-15 08:44:44 +02:00
export default alt.createStore(EditionStore, 'EditionStore');