Merge pull request #18 from embark-framework/bug_fix/this-not-self

bad reference in onReady
This commit is contained in:
Jonathan Rainville 2018-09-04 08:53:24 -04:00 committed by GitHub
commit 2e636e1258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import Utils from './utils.js';
var EmbarkJS = { var EmbarkJS = {
onReady: function (cb) { onReady: function (cb) {
if (self.Blockchain.done) { if (this.Blockchain.done) {
return cb(); return cb();
} }
this.Blockchain.finalCb = function() { this.Blockchain.finalCb = function() {