diff --git a/js/src/common/Application.ts b/js/src/common/Application.ts index abd753799..db3abd24a 100644 --- a/js/src/common/Application.ts +++ b/js/src/common/Application.ts @@ -95,7 +95,7 @@ export default abstract class Application { * An Alert that was shown as a result of an AJAX request error. If present, * it will be dismissed on the next successful request. */ - private requestError: Alert | null = null; + private requestError: RequestError | null = null; data!: ApplicationData; diff --git a/js/src/common/Bus.ts b/js/src/common/Bus.ts deleted file mode 100644 index c2de342a9..000000000 --- a/js/src/common/Bus.ts +++ /dev/null @@ -1,17 +0,0 @@ -import forEach from 'lodash/forEach'; -import get from 'lodash/get'; -import set from 'lodash/set'; - -export default class Bus { - subscribers = {}; - - subscribe(event, callable) { - set(this.subscribers, event + '[]', callable); - } - - dispatch(event, args: any = null) { - forEach(get(this.subscribers, event), function(listener) { - listener(event, args); - }); - } -}