mirror of
https://github.com/imsky/holder.git
synced 2026-04-21 03:01:19 -04:00
Fixed text alignment with 'turbolinks'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user