@@ -61,7 +61,7 @@ const unhoisted = { hoisted: false };
61
61
* @returns {null | DelegatedEvent }
62
62
*/
63
63
function get_delegated_event ( event_name , handler , context ) {
64
- // Handle delegated event handlers. Bail- out if not a delegated event.
64
+ // Handle delegated event handlers. Bail out if not a delegated event.
65
65
if ( ! handler || ! is_delegated ( event_name ) ) {
66
66
return null ;
67
67
}
@@ -155,9 +155,9 @@ function get_delegated_event(event_name, handler, context) {
155
155
const visited_references = new Set ( ) ;
156
156
const scope = target_function . metadata . scope ;
157
157
for ( const [ reference ] of scope . references ) {
158
- // Bail- out if the arguments keyword is used
158
+ // Bail out if the arguments keyword is used
159
159
if ( reference === 'arguments' ) return unhoisted ;
160
- // Bail- out if references a store subscription
160
+ // Bail out if references a store subscription
161
161
if ( scope . get ( `$${ reference } ` ) ?. kind === 'store_sub' ) return unhoisted ;
162
162
163
163
const binding = scope . get ( reference ) ;
@@ -182,9 +182,9 @@ function get_delegated_event(event_name, handler, context) {
182
182
183
183
if (
184
184
binding !== null &&
185
- // Bail- out if the the binding is a rest param
185
+ // Bail out if the the binding is a rest param
186
186
( binding . declaration_kind === 'rest_param' ||
187
- // Bail- out if we reference anything from the EachBlock (for now) that mutates in non-runes mode,
187
+ // Bail out if we reference anything from the EachBlock (for now) that mutates in non-runes mode,
188
188
( ( ( ! context . state . analysis . runes && binding . kind === 'each' ) ||
189
189
// or any normal not reactive bindings that are mutated.
190
190
binding . kind === 'normal' ||
0 commit comments