Skip to content

Commit

Permalink
Unify variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Feb 6, 2023
1 parent 29e9056 commit 37372f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ var boolAttrs = {
set style(value) {
this.styleMap = new StyleMap(value)
},
contains: function (targetNode) {
for (; targetNode; targetNode = targetNode.parentNode) {
if (targetNode === this) return true
}
contains: function (el) {
for (; el; el = el.parentNode) if (el === this) return true
return false
},
hasChildNodes: function() {
Expand Down

0 comments on commit 37372f7

Please sign in to comment.