mirror of https://github.com/embarklabs/embark.git
hotfix for watch not defined
This commit is contained in:
parent
6766ecae5f
commit
0d20d422ce
|
@ -146,7 +146,9 @@ class Engine {
|
||||||
self.currentAbi = abi;
|
self.currentAbi = abi;
|
||||||
self.contractsJSON = contractsJSON;
|
self.contractsJSON = contractsJSON;
|
||||||
pipeline.build(abi, contractsJSON, null, function() {
|
pipeline.build(abi, contractsJSON, null, function() {
|
||||||
|
if (self.watch) {
|
||||||
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched
|
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched
|
||||||
|
}
|
||||||
self.events.emit('outputDone');
|
self.events.emit('outputDone');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue