Skip to content

Commit eb93b47

Browse files
committed
more typos
1 parent 27d5942 commit eb93b47

File tree

1 file changed

+5
-5
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/visitors

1 file changed

+5
-5
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const unhoisted = { hoisted: false };
6161
* @returns {null | DelegatedEvent}
6262
*/
6363
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.
6565
if (!handler || !is_delegated(event_name)) {
6666
return null;
6767
}
@@ -155,9 +155,9 @@ function get_delegated_event(event_name, handler, context) {
155155
const visited_references = new Set();
156156
const scope = target_function.metadata.scope;
157157
for (const [reference] of scope.references) {
158-
// Bail-out if the arguments keyword is used
158+
// Bail out if the arguments keyword is used
159159
if (reference === 'arguments') return unhoisted;
160-
// Bail-out if references a store subscription
160+
// Bail out if references a store subscription
161161
if (scope.get(`$${reference}`)?.kind === 'store_sub') return unhoisted;
162162

163163
const binding = scope.get(reference);
@@ -182,9 +182,9 @@ function get_delegated_event(event_name, handler, context) {
182182

183183
if (
184184
binding !== null &&
185-
// Bail-out if the the binding is a rest param
185+
// Bail out if the the binding is a rest param
186186
(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,
188188
(((!context.state.analysis.runes && binding.kind === 'each') ||
189189
// or any normal not reactive bindings that are mutated.
190190
binding.kind === 'normal' ||

0 commit comments

Comments
 (0)