Skip to content

Commit c50e77a

Browse files
authored
style: use let instead of var in x-model.js (#4645)
1 parent 55757b6 commit c50e77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/alpinejs/src/directives/x-model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ directive('model', (el, { modifiers, expression }, { effect, cleanup }) => {
5757

5858
// If the element we are binding to is a select, a radio, or checkbox
5959
// we'll listen for the change event instead of the "input" event.
60-
var event = (el.tagName.toLowerCase() === 'select')
60+
let event = (el.tagName.toLowerCase() === 'select')
6161
|| ['checkbox', 'radio'].includes(el.type)
6262
|| modifiers.includes('lazy')
6363
? 'change' : 'input'

0 commit comments

Comments
 (0)