Skip to content

Commit e1d8cd1

Browse files
authored
fix links
thank you, @mootari! closes #224
1 parent 89c81dc commit e1d8cd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Lastly, Inputs provides low-level utilities for more advanced usage:
3838

3939
* [Form](#inputsforminputs-options) - combine multiple inputs
4040
* [Input](#inputsinputvalue) - a programmatic interface for storing input state
41-
* [bind](#bind) - synchronize two or more inputs
42-
* [disposal](#disposal) - detect when an input is discarded
41+
* [bind](#inputsbindtarget-source-invalidation) - synchronize two or more inputs
42+
* [disposal](#inputsdisposalelement) - detect when an input is discarded
4343

4444
Observable Inputs are released under the [ISC license](./LICENSE) and depend only on [Hypertext Literal](https://github.com/observablehq/htl), our tagged template literal for safely generating dynamic HTML.
4545

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

499499
#### Inputs.input(*value*)
500500

501-
[Source](./src/input.js) · [Examples](https://observablehq.com/@observablehq/synchronized-inputs) · Returns an [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) with the specified *value*. This is typically used in conjunction with [bind](#bind) to synchronize multiple inputs, with the Input being the primary state store. An Input is similar to a [mutable](https://observablehq.com/@observablehq/introduction-to-mutable-state), except that it allows listeners.
501+
[Source](./src/input.js) · [Examples](https://observablehq.com/@observablehq/synchronized-inputs) · Returns an [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) with the specified *value*. This is typically used in conjunction with [bind](#inputsbindtarget-source-invalidation) to synchronize multiple inputs, with the Input being the primary state store. An Input is similar to a [mutable](https://observablehq.com/@observablehq/introduction-to-mutable-state), except that it allows listeners.
502502

503503
#### Inputs.bind(*target*, *source*, *invalidation*)
504504

@@ -517,11 +517,11 @@ When the *target* emits a type-appropriate event, the *target*’s type-appropri
517517

518518
The type-appropriate event is a *click* event for buttons and submit inputs, a *change* event for file inputs, and an *input* event for anything else. The type-appropriate value is *input*.valueAsNumber for range and number inputs, *input*.valueAsDate for date inputs, *input*.checked for checkbox inputs, *input*.files for multiple file inputs, *input*.files[0] for single-file inputs, and *input*.value for anything else.
519519

520-
If *invalidation* is specified, it is a promise; when the promise resolves, the target will stop listening to the source. If *invalidation* is not specified, it defaults to the [disposal promise](#disposal) on the specified *target*. Note that source will remain listening to the target, however, until the target is garbage-collected.
520+
If *invalidation* is specified, it is a promise; when the promise resolves, the target will stop listening to the source. If *invalidation* is not specified, it defaults to the [disposal promise](#inputsdisposalelement) on the specified *target*. Note that source will remain listening to the target, however, until the target is garbage-collected.
521521

522522
#### Inputs.disposal(*element*)
523523

524-
[Source](./src/disposal.js) · The disposal promise is a heuristic for detecting when an input has been removed from the DOM, say to detach synchronized inputs. It is used by [bind](#bind) by default as the invalidation promise, but is exported here for convenience.
524+
[Source](./src/disposal.js) · The disposal promise is a heuristic for detecting when an input has been removed from the DOM, say to detach synchronized inputs. It is used by [bind](#inputsbindtarget-source-invalidation) by default as the invalidation promise, but is exported here for convenience.
525525

526526
#### Inputs.searchFilter(*query*)
527527

0 commit comments

Comments
 (0)