mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 02:29:01 +00:00
Create ContextMenu component
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
import {EventEmitter} from 'events';
|
||||
|
||||
export default class BaseStore extends EventEmitter {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.on('uncaughtException', this.handleError);
|
||||
this.setMaxListeners(20);
|
||||
}
|
||||
|
||||
handleError(error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
listen(event, callback) {
|
||||
this.on(event, callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user