Commit 0e7632fc authored by yann300's avatar yann300

move event instanciation at the start

parent 60e5c4ba
...@@ -113,6 +113,7 @@ var css = csjs` ...@@ -113,6 +113,7 @@ var css = csjs`
class App { class App {
constructor (api = {}, events = {}, opts = {}) { constructor (api = {}, events = {}, opts = {}) {
var self = this var self = this
this.event = new EventManager()
self._components = {} self._components = {}
registry.put({api: self, name: 'app'}) registry.put({api: self, name: 'app'})
...@@ -465,8 +466,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org ...@@ -465,8 +466,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
} }
}, false) }, false)
this.event = new EventManager()
// Replace early callback with instant response // Replace early callback with instant response
loadFilesCallback = function (files) { loadFilesCallback = function (files) {
self.loadFiles(files) self.loadFiles(files)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment