chore(core): swap draw dependency

Make bpmn-js/draw depend on bpmn-js/core and not vice versa
This commit is contained in:
Nico Rehwaldt 2014-06-30 16:56:43 +02:00
parent f386443f1a
commit 88c5dcbb2f
4 changed files with 7 additions and 2 deletions

View File

@ -229,6 +229,7 @@ Viewer.prototype.on = function(event, handler) {
// modules the viewer is composed of
Viewer.prototype._modules = [
require('./core'),
require('./draw'),
require('diagram-js/lib/features/selection')
];

View File

@ -1,4 +1,3 @@
module.exports = {
__depends__: [ require('../draw') ],
bpmnRegistry: [ 'type', require('./BpmnRegistry') ]
};

View File

@ -1,4 +1,5 @@
module.exports = {
__depends__: [ require('../core') ],
renderer: [ 'type', require('./BpmnRenderer') ],
pathMap: [ 'type', require('./PathMap') ]
};

View File

@ -8,6 +8,8 @@ var fs = require('fs');
var Events = require('diagram-js/lib/core/EventBus');
var Viewer = require('../../../../lib/Viewer');
describe('environment - mocking', function() {
@ -15,7 +17,9 @@ describe('environment - mocking', function() {
var mockEvents, bootstrapCalled;
beforeEach(bootstrapBpmnJS(diagramXML, function() {
beforeEach(bootstrapBpmnJS(diagramXML, {
modules: Viewer.prototype._modules
}, function() {
mockEvents = new Events();
bootstrapCalled = true;