fix(replace): remove unused modeling dependency

The modeling module should be provided by components explicitly.

This allows users to replace it for customization.
This commit is contained in:
Nico Rehwaldt 2015-04-30 10:52:34 +02:00
parent cb52a479e0
commit 7a54267536
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,7 @@ module.exports = {
__depends__: [
require('diagram-js/lib/features/popup-menu'),
require('diagram-js/lib/features/replace'),
require('diagram-js/lib/features/selection'),
require('../modeling')
require('diagram-js/lib/features/selection')
],
bpmnReplace: [ 'type', require('./BpmnReplace') ]
};

View File

@ -6,7 +6,8 @@ var TestHelper = require('../../../TestHelper');
var contextPadModule = require('../../../../lib/features/context-pad'),
bpmnModule = require('../../../../lib/core'),
coreModule = require('../../../../lib/core'),
modelingModule = require('../../../../lib/features/modeling'),
popupModule = require('diagram-js/lib/features/popup-menu'),
replaceModule = require('diagram-js/lib/features/replace');
@ -15,7 +16,7 @@ describe('features - context-pad', function() {
var diagramXML = require('../../../fixtures/bpmn/simple.bpmn');
var testModules = [ contextPadModule, bpmnModule, popupModule, replaceModule ];
var testModules = [ contextPadModule, coreModule, modelingModule, popupModule, replaceModule ];
beforeEach(bootstrapViewer(diagramXML, { modules: testModules }));