digitransit-ui/app/store/DestinationStore.js
2021-01-27 15:16:47 +02:00

25 lines
458 B
JavaScript

import Store from 'fluxible/addons/BaseStore';
class DestinationStore extends Store {
static storeName = 'DestinationStore';
constructor(...args) {
super(...args);
this.destination = {};
}
getDestination() {
return this.destination;
}
setDestination(destination) {
this.destination = destination;
this.emitChange();
}
static handlers = {
SetDestination: 'setDestination',
};
}
export default DestinationStore;