mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-17 11:26:42 +00:00
test(integration): correctly instantiate CustomElementFactory
This commit is contained in:
parent
fcf2bbd9aa
commit
4fa6827f8c
@ -7,8 +7,8 @@ var BpmnElementFactory = require('../../../lib/features/modeling/ElementFactory'
|
|||||||
LabelUtil = require('../../../lib/util/LabelUtil');
|
LabelUtil = require('../../../lib/util/LabelUtil');
|
||||||
|
|
||||||
|
|
||||||
function CustomElementFactory(bpmnFactory, moddle) {
|
function CustomElementFactory(injector) {
|
||||||
BpmnElementFactory.call(this, bpmnFactory, moddle);
|
injector.invoke(BpmnElementFactory, this);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ inherits(CustomElementFactory, BpmnElementFactory);
|
|||||||
|
|
||||||
module.exports = CustomElementFactory;
|
module.exports = CustomElementFactory;
|
||||||
|
|
||||||
CustomElementFactory.$inject = [ 'bpmnFactory', 'moddle' ];
|
CustomElementFactory.$inject = [ 'injector' ];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user