chore(dependencies): update moddle

This commit is contained in:
Nico Rehwaldt 2014-04-28 11:09:47 +02:00
parent 27f9d1c59a
commit a57cb76943
2 changed files with 8 additions and 8 deletions

View File

@ -15,9 +15,9 @@ function BpmnTraverser(handler) {
fn(e, ctx);
};
}
function is(element, type) {
return element.__instanceOf(type);
return element.$instanceOf(type);
}
function visit(element, di, ctx) {
@ -89,7 +89,7 @@ function BpmnTraverser(handler) {
function handleDefinitions(definitions, diagram) {
// make sure we walk the correct bpmnElement
var diagrams = definitions.diagrams;
if (diagram && diagrams.indexOf(diagram) === -1) {
@ -153,7 +153,7 @@ function BpmnTraverser(handler) {
// bpmn:TextAnnotation
// bpmn:Group
// bpmn:Association
visitIfDi(artifact, context);
}
@ -162,7 +162,7 @@ function BpmnTraverser(handler) {
}
function handleIoSpecification(ioSpecification, context) {
if (!ioSpecification) {
return;
}
@ -229,7 +229,7 @@ function BpmnTraverser(handler) {
function handleNonFlowNodes(flowElements, context) {
var sequenceFlows = [];
_.forEach(flowElements, function(e) {
if (is(e, 'bpmn:SequenceFlow')) {
sequenceFlows.push(e);
@ -316,7 +316,7 @@ function BpmnTraverser(handler) {
///// API ////////////////////////////////
return {
handleDefinitions: handleDefinitions
};

View File

@ -64,7 +64,7 @@
},
"dependencies": {
"bpmn-moddle": "~0.0.1",
"moddle": "~0.0.2",
"moddle": "~0.0.4",
"diagram-js": "~0.0.2"
},
"peerDependencies": {