From 66836e0552963d059535cf3c8144bc6229448095 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Fri, 26 Dec 2014 17:08:37 -0500 Subject: [PATCH] Fixing issue with multiple SVG elements being rendered at once --- src/js/parser/javascript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/parser/javascript.js b/src/js/parser/javascript.js index 856c159..8f67cd9 100644 --- a/src/js/parser/javascript.js +++ b/src/js/parser/javascript.js @@ -35,7 +35,7 @@ export default class Parser { render(containerElement, svgBase) { var svg; - containerElement.innerHTML += svgBase; + containerElement.innerHTML = svgBase; svg = Snap(containerElement.querySelector('svg'));