Skip to content

Commit

Permalink
Merge pull request #832 from vaniship/master
Browse files Browse the repository at this point in the history
fix draw function can only call once
  • Loading branch information
knsv committed Jun 11, 2019
2 parents 333a132 + c3f03e4 commit b951d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/diagrams/class/classRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { parser } from './parser/classDiagram'

parser.yy = classDb

const idCache = {}
let idCache = {}

const conf = {
dividerMargin: 10,
Expand Down Expand Up @@ -334,6 +334,7 @@ export const setConf = function (cnf) {
* @param id
*/
export const draw = function (text, id) {
idCache = {}
parser.yy.clear()
parser.parse(text)

Expand Down

0 comments on commit b951d50

Please sign in to comment.