mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 18:39:41 +02:00
#901 Fixed the issue with multiple calls to bind the click functions. Also sanitized the tooltips so that no tags are allowed in them for (#847).
This commit is contained in:
@@ -228,6 +228,7 @@ export const addEdges = function (edges, g) {
|
||||
* @returns {object} classDef styles
|
||||
*/
|
||||
export const getClasses = function (text) {
|
||||
logger.info('Extracting classes')
|
||||
flowDb.clear()
|
||||
const parser = flow.parser
|
||||
parser.yy = flowDb
|
||||
@@ -243,7 +244,7 @@ export const getClasses = function (text) {
|
||||
* @param id
|
||||
*/
|
||||
export const draw = function (text, id) {
|
||||
logger.debug('Drawing flowchart')
|
||||
logger.info('Drawing flowchart')
|
||||
flowDb.clear()
|
||||
const parser = flow.parser
|
||||
parser.yy = flowDb
|
||||
|
Reference in New Issue
Block a user