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
commit b951d506d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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)