remove engine param

This commit is contained in:
Iuri Matias 2018-07-30 14:31:24 -04:00
parent ac91ffb967
commit 3a15804fda
2 changed files with 1 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class Engine {
}
graphService(_options) {
this.registerModule('graph', {engine: this});
this.registerModule('graph');
}
pipelineService(_options) {

View File

@ -1,13 +1,10 @@
const Viz = require('viz.js');
const fs = require('fs');
// TODO: refactor this class to use the plugin api and not refeneences directly
class GraphGenerator {
constructor(embark, options) {
const self = this;
this.events = embark.events;
// TODO: this is a very bad dependency to have here, needs to be refactored to use events, etc..
this.engine = options.engine;
this.events.setCommandHandler("graph:create", function(options, cb) {
self.generate(options);