Merge pull request #18 from embark-framework/bug_fix/this-not-self
bad reference in onReady
This commit is contained in:
commit
2e636e1258
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue