Merge pull request #84 from amensouissi/master

call 'contains method' from 'document.body' (for ie)
This commit is contained in:
Jaime Pillora
2016-10-05 14:18:57 +11:00
committed by GitHub
+1 -1
View File
@@ -346,7 +346,7 @@
var align = positions[pAlign];
var key = pMain + "|" + pAlign;
var anchor = globalAnchors[key];
if (!anchor || !document.contains(anchor[0])) {
if (!anchor || !document.body.contains(anchor[0])) {
anchor = globalAnchors[key] = createElem("div");
var css = {};
css[main] = 0;