Fixing issue with multiple SVG elements being rendered at once

This commit is contained in:
Jeff Avallone 2014-12-26 17:08:37 -05:00
parent 24971eb09f
commit 66836e0552

View File

@ -35,7 +35,7 @@ export default class Parser {
render(containerElement, svgBase) { render(containerElement, svgBase) {
var svg; var svg;
containerElement.innerHTML += svgBase; containerElement.innerHTML = svgBase;
svg = Snap(containerElement.querySelector('svg')); svg = Snap(containerElement.querySelector('svg'));