Skip to content

Commit

Permalink
On https://nv.github.io/CSSOM/docs/parse.html, save the last parsed r…
Browse files Browse the repository at this point in the history
…esult in `_last_parsed` global variable.
  • Loading branch information
NV committed Jun 20, 2021
1 parent 6b6de70 commit 1fd2d1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function outputUpdated() {
if (value !== style.prevValue) {
style.prevValue = value;
var css = CSSOM.parse(value);
window._last_parsed = css;
uncircularOwnProperties(css);
output.innerHTML = '';
output.appendChild(inspect(css));
Expand Down

0 comments on commit 1fd2d1d

Please sign in to comment.