Skip to content

Commit

Permalink
correct object cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Oct 20, 2017
1 parent 450fa12 commit 0d15689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stackload.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
// s.style.display="none";
s.className=c;
document.body.appendChild(s);
x=window.getComputedStyle(s);
x=JSON.parse(JSON.stringify(window.getComputedStyle(s)));
s.parentNode.removeChild(s);
return x;
}
Expand Down
2 changes: 1 addition & 1 deletion stackload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d15689

Please sign in to comment.