Fixed anchors cache
Fixed anchors cache for compatibility with Turbolinks. "Anchor" element must not be used if it occasionally is out of DOM.
This commit is contained in:
1 parent
b99c2ae69c
commit
ac9bb74367
1 file changed
+1
-1
Vendored
+1
-1
@@ -337,7 +337,7 @@
|
||||
var align = positions[pAlign];
|
||||
var key = pMain + "|" + pAlign;
|
||||
var anchor = globalAnchors[key];
|
||||
if (!anchor) {
|
||||
if (!anchor || !document.contains(anchor[0])) {
|
||||
anchor = globalAnchors[key] = createElem("div");
|
||||
var css = {};
|
||||
css[main] = 0;
|
||||
|
||||
Reference in new issue
Block a user