Skip to content

Commit 0d15689

Browse files
committed
correct object cloning
1 parent 450fa12 commit 0d15689

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stackload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
// s.style.display="none";
164164
s.className=c;
165165
document.body.appendChild(s);
166-
x=window.getComputedStyle(s);
166+
x=JSON.parse(JSON.stringify(window.getComputedStyle(s)));
167167
s.parentNode.removeChild(s);
168168
return x;
169169
}

stackload.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)