Fixed text alignment with 'turbolinks'

This commit is contained in:
Edgard
2014-12-30 09:35:33 -02:00
committed by Edgard
parent a0f4e7e5f9
commit 3ebf7bd2be

View File

@@ -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);