Skip to content

Commit

Permalink
Revert "fix: add null check for element"
Browse files Browse the repository at this point in the history
This reverts commit 3e47342.
  • Loading branch information
Anthony Fang committed Aug 18, 2020
1 parent 3e47342 commit 60ccc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ie11CustomProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@
if (inheritingKeywords[value] || !register[property] || register[property].inherits) {
//let el = this.pseudoElt ? this.computedFor : this.computedFor.parentNode;
let el = this.computedFor.parentNode;
while (el && el.nodeType === 1) {
while (el.nodeType === 1) {
// without, it affects performance: 1000 els inside 100 parents: 1000ms (instead of 600ms) is it acceptable?
// would also remove complexity, because i can remove the ieCP_setters property
//if (el.ieCP_setters && el.ieCP_setters[property]) {
Expand Down

0 comments on commit 60ccc40

Please sign in to comment.