From 3ebf7bd2beb528058d058584bfcaa301144b68c1 Mon Sep 17 00:00:00 2001 From: Edgard Date: Tue, 30 Dec 2014 09:35:33 -0200 Subject: [PATCH] Fixed text alignment with 'turbolinks' --- src/holder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/holder.js b/src/holder.js index 57500d9..da34075 100644 --- a/src/holder.js +++ b/src/holder.js @@ -883,7 +883,7 @@ Holder.js - client side image placeholders var tnode = function(text) { return document.createTextNode(text); }; - if (svg == null) { + if (svg == null || svg.parentNode !== document.body) { firstTimeSetup = true; } svg = initSVG(svg, rootNode.properties.width, rootNode.properties.height);