Merge pull request #3054 from webFardin/patch-4

Fixed setTimeout() issue
This commit is contained in:
Ilya Kantor 2022-06-18 21:49:07 +03:00 committed by GitHub
commit 47fec275c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ Also there is a special method for that, `elem.style.removeProperty('style prope
```js run
document.body.style.background = 'red'; //set background to red
setTimeout(() => document.body.style.removeProperty('background')); // remove background after 1 second
setTimeout(() => document.body.style.removeProperty('background'), 1000); // remove background after 1 second
```
````smart header="Full rewrite with `style.cssText`"