@@ -255,7 +255,7 @@ function setup_select_synchronization(value_binding, context) {
255
255
* value = $.spread_attributes(element, value, [...])
256
256
* });
257
257
* ```
258
- * Returns the id of the spread_attribute varialbe if spread is deemed reactive, `null` otherwise.
258
+ * Returns the id of the spread_attribute variable if spread is deemed reactive, `null` otherwise.
259
259
* @param {Array<import('#compiler').Attribute | import('#compiler').SpreadAttribute> } attributes
260
260
* @param {import('../types.js').ComponentContext } context
261
261
* @param {import('estree').Identifier } element_id
@@ -376,7 +376,7 @@ function serialize_dynamic_element_spread_attributes(attributes, context, elemen
376
376
}
377
377
378
378
/**
379
- * Serializes an assigment to an element property by adding relevant statements to either only
379
+ * Serializes an assignment to an element property by adding relevant statements to either only
380
380
* the init or the the init and update arrays, depending on whether or not the value is dynamic.
381
381
* Resulting code for static looks something like this:
382
382
* ```js
@@ -551,7 +551,7 @@ function serialize_custom_element_attribute_update_assignment(node_id, attribute
551
551
}
552
552
553
553
/**
554
- * Serializes an assigment to the value property of a `<select>`, `<option>` or `<input>` element
554
+ * Serializes an assignment to the value property of a `<select>`, `<option>` or `<input>` element
555
555
* that needs the hidden `__value` property.
556
556
* Returns true if attribute is deemed reactive, false otherwise.
557
557
* @param {string } element
@@ -573,7 +573,7 @@ function serialize_element_special_value_attribute(element, node_id, attribute,
573
573
const needs_selected_call =
574
574
element === 'option' && ( is_reactive || collect_parent_each_blocks ( context ) . length > 0 ) ;
575
575
const needs_option_call = element === 'select' && is_reactive ;
576
- const assigment = b . stmt (
576
+ const assignment = b . stmt (
577
577
needs_selected_call
578
578
? b . sequence ( [
579
579
inner_assignment ,
@@ -595,12 +595,12 @@ function serialize_element_special_value_attribute(element, node_id, attribute,
595
595
id ,
596
596
undefined ,
597
597
value ,
598
- { grouped : assigment } ,
598
+ { grouped : assignment } ,
599
599
contains_call_expression
600
600
) ;
601
601
return true ;
602
602
} else {
603
- state . init . push ( assigment ) ;
603
+ state . init . push ( assignment ) ;
604
604
return false ;
605
605
}
606
606
}
0 commit comments