Skip to content

Commit 124a4f3

Browse files
committed
Remove unneeded count
1 parent 19c4dd9 commit 124a4f3

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

index.browser.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ function element(selector, conditions, stylesheet) {
4343
/:self|\$this/g,
4444
`[data-element-${attr}="${count}"]`
4545
)
46-
count++
47-
46+
4847
} else {
4948

5049
tag.setAttribute(`data-element-${attr}`, '')

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ module.exports = (selector, conditions, stylesheet) => {
4343
/:self|\$this/g,
4444
`[data-element-${attr}="${count}"]`
4545
)
46-
count++
47-
46+
4847
} else {
4948

5049
tag.setAttribute(`data-element-${attr}`, '')

index.vanilla.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ export default (selector, conditions, stylesheet) => {
4343
/:self|\$this/g,
4444
`[data-element-${attr}="${count}"]`
4545
)
46-
count++
47-
46+
4847
} else {
4948

5049
tag.setAttribute(`data-element-${attr}`, '')

0 commit comments

Comments
 (0)