From 980749536bda9babaa0fbae8057e2fa02197c3be Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Tue, 20 Aug 2019 18:42:19 +0200 Subject: [PATCH] Fix for issue with bindFunctions being called when there are none. --- src/mermaid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mermaid.js b/src/mermaid.js index 183c11a1b..ebfc87532 100644 --- a/src/mermaid.js +++ b/src/mermaid.js @@ -98,7 +98,7 @@ const init = function () { if (typeof callback !== 'undefined') { callback(id) } - bindFunctions(element) + if (bindFunctions) bindFunctions(element) }, element) } }