From 5b5be40dd59b8a861f25787fbe6fc7eb15f475fe Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Thu, 7 Nov 2019 22:09:34 +0100 Subject: [PATCH] Fixing the binding function error --- cypress/platform/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/platform/viewer.js b/cypress/platform/viewer.js index ec42fff6a..76705dfaf 100644 --- a/cypress/platform/viewer.js +++ b/cypress/platform/viewer.js @@ -44,7 +44,7 @@ const contentLoadedApi = function() { (svgCode, bindFunctions) => { div.innerHTML = svgCode; - bindFunctions(div); + if (bindFunctions) bindFunctions(div); }, div );