Create ContextMenu component

This commit is contained in:
John Furrow
2016-02-21 00:32:08 -08:00
parent c51387581a
commit bacafe7e4d
18 changed files with 358 additions and 62 deletions
+11
View File
@@ -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);
}