Fixed a regression in sequence diagram parsing.

Added the parser as the first argument to parseDirective to support custom directive handling (for now delegated within mermaidAPI but should probably discriminate based on type for delegation)
This commit is contained in:
chris moran
2020-07-27 06:50:54 -04:00
parent 38d4b5be1a
commit c4ad95760a
9 changed files with 17 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ let classCounter = 0;
let funs = [];
export const parseDirective = function(statement, context, type) {
mermaidAPI.parseDirective(statement, context, type);
mermaidAPI.parseDirective(this, statement, context, type);
};
const splitClassNameAndType = function(id) {