debian-mirror-gitlab/app/assets/javascripts/sidebar/event_hub.js

9 lines
245 B
JavaScript
Raw Normal View History

2020-11-24 15:15:51 +05:30
import createEventHub from '~/helpers/event_hub_factory';
2017-08-17 22:00:37 +05:30
2020-11-24 15:15:51 +05:30
const eventHub = createEventHub();
2017-08-17 22:00:37 +05:30
// TODO: remove eventHub hack after code splitting refactor
window.emitSidebarEvent = (...args) => eventHub.$emit(...args);
export default eventHub;