mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
remove engine param
This commit is contained in:
parent
ac91ffb967
commit
3a15804fda
@ -81,7 +81,7 @@ class Engine {
|
||||
}
|
||||
|
||||
graphService(_options) {
|
||||
this.registerModule('graph', {engine: this});
|
||||
this.registerModule('graph');
|
||||
}
|
||||
|
||||
pipelineService(_options) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user