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