1.0.2 • Published 7 years ago
electron-eventbus v1.0.2
Electron-EventBus
EventBus.on
EventBus.once
EventBus.emit
EventBus.send
EventBus.sendSync
EventBus.broadcast
使用示例
const XtremeEventBus = new EventBus();
XtremeEventBus.on('componentManagment:componentSelected', () => {
console.log('componentSelected occurred!');
});
XtremeEventBus.emit('event');
XtremeEventBus.broadcast('event');