Merge pull request #832 from vaniship/master

fix draw function can only call once
This commit is contained in:
Knut Sveidqvist
2019-06-11 17:13:00 +02:00
committed by GitHub

View File

@@ -8,7 +8,7 @@ import { parser } from './parser/classDiagram'
parser.yy = classDb
const idCache = {}
let idCache = {}
const conf = {
dividerMargin: 10,
@@ -334,6 +334,7 @@ export const setConf = function (cnf) {
* @param id
*/
export const draw = function (text, id) {
idCache = {}
parser.yy.clear()
parser.parse(text)