Skip to content

Commit

Permalink
fix: fix draw function can only call once
Browse files Browse the repository at this point in the history
  • Loading branch information
vaniship authored May 7, 2019
1 parent 7d3578b commit c3f03e4
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 = {}

let classCnt = 0
const conf = {
Expand Down Expand Up @@ -301,6 +301,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 c3f03e4

Please sign in to comment.