mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-05 16:30:37 +02:00
25 lines
458 B
JavaScript
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;
|