move event instanciation at the start

pull/1/head
yann300 6 years ago
parent d7640e451e
commit aadf49feda
  1. 3
      src/app.js

@ -113,6 +113,7 @@ var css = csjs`
class App {
constructor (api = {}, events = {}, opts = {}) {
var self = this
this.event = new EventManager()
self._components = {}
registry.put({api: self, name: 'app'})
@ -465,8 +466,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
}
}, false)
this.event = new EventManager()
// Replace early callback with instant response
loadFilesCallback = function (files) {
self.loadFiles(files)

Loading…
Cancel
Save