Skip to content

Commit 04a1a8b

Browse files
authored
Fix spelling (#279)
* spelling: collapse Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: dependent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: fall back Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: materialized Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent 7ae53c7 commit 04a1a8b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ If *validate* is not defined, [*number*.checkValidity](https://html.spec.whatwg.
216216

217217
The *format* function should return a string value that is compatible with native number parsing. Hence, the default [formatTrim](#formatTrim) is recommended.
218218

219-
If a *transform* function is specified, an inverse transform function *invert* is strongly recommended. If *invert* is not provided, the Range will fallback to Newton’s method, but this may be slow or inaccurate. Passing Math.sqrt, Math.log, or Math.exp as a *transform* will automatically supply the corresponding *invert*. If *min* is greater than *max*, *i.e.* if the extent is inverted, then *transform* and *invert* will default to `(value) => -value`.
219+
If a *transform* function is specified, an inverse transform function *invert* is strongly recommended. If *invert* is not provided, the Range will fall back to Newton’s method, but this may be slow or inaccurate. Passing Math.sqrt, Math.log, or Math.exp as a *transform* will automatically supply the corresponding *invert*. If *min* is greater than *max*, *i.e.* if the extent is inverted, then *transform* and *invert* will default to `(value) => -value`.
220220

221221
#### Inputs.number([*extent*, ]*options*)
222222

@@ -524,7 +524,7 @@ If the *template* object is not specified, the given inputs are wrapped in a DIV
524524

525525
[Source](./src/bind.js) · [Notebook](https://observablehq.com/@observablehq/synchronized-inputs) · The bind function allows a *target* input to be bound to a *source* input, synchronizing the two: interaction with the *source* input will propagate to the *target* input and *vice versa*.
526526

527-
The relationship between *target* and *source* is not symmetric: the *target* input should be considered a dependant of the *source* input, and if desired, only the *source* should be declared an Observable view.
527+
The relationship between *target* and *source* is not symmetric: the *target* input should be considered a dependent of the *source* input, and if desired, only the *source* should be declared an Observable view.
528528

529529
When the *target* emits a type-appropriate event, the *target*’s type-appropriate value will be applied to the *source* and a type-appropriate event will be dispatched on the *source*; when the *source* emits a type-appropriate event, the *source*’s type-appropriate value will be applied to the *target*, but *no event will be dispatched*, avoiding an infinite loop.
530530

src/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ form.__ns__-toggle > label {
3939
margin-right: var(--length2);
4040
}
4141

42-
/* Since toggles won’t wrap on narrow screens, collpase to content. */
42+
/* Since toggles won’t wrap on narrow screens, collapse to content. */
4343
form.__ns__-toggle > label,
4444
form.__ns__-toggle .__ns__-input {
4545
width: initial;

src/table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function initialize(
248248
const check = inputof(theadr);
249249
if (check == null) return;
250250
check.disabled = !multiple && !selected.size;
251-
check.indeterminate = multiple && selected.size && selected.size !== N; // assume materalized!
251+
check.indeterminate = multiple && selected.size && selected.size !== N; // assume materialized!
252252
check.checked = selected.size;
253253
value = undefined; // lazily computed
254254
}

0 commit comments

Comments
 (0)