We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2954140 commit 4e753adCopy full SHA for 4e753ad
lib/dom-styles-reader.js
@@ -40,8 +40,11 @@ export default class DOMStylesReader {
40
const key = scopes.join(' ')
41
let cachedData = this.domStylesCache.get(key)
42
43
- if (cache && (cachedData !== undefined ? cachedData[property] : undefined) != null) {
44
- return cachedData[property]
+ if (cache && cachedData !== undefined) {
+ const value = cachedData[property]
45
+ if (value != null) {
46
+ return value
47
+ }
48
}
49
50
this.ensureDummyNodeExistence(targetNode)
0 commit comments