Skip to content

Commit 802f0dd

Browse files
authored
fix links (#1633)
1 parent a7b474a commit 802f0dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ Implicit display also implicitly awaits promises.
254254

255255
## Responsive display
256256

257-
In Markdown, the built-in [`width` reactive variable](#width) represents the current width of the main element. This variable is implemented by [`Generators.width`](./lib/generators#width(element)) and backed by a [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). The reactive width can be a handy thing to pass, say, as the **width** option to [Observable Plot](./lib/plot).
257+
In Markdown, the built-in [`width` reactive variable](#width) represents the current width of the main element. This variable is implemented by [`Generators.width`](./lib/generators#width-element) and backed by a [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). The reactive width can be a handy thing to pass, say, as the **width** option to [Observable Plot](./lib/plot).
258258

259259
```js echo
260260
Plot.barX([9, 4, 8, 1, 11, 3, 4, 2, 7, 5]).plot({width})
261261
```
262262

263-
For non-top-level elements, as when rendering content within an inline expression, use the built-in [`resize` function](#resize(render)) instead. This takes a _render_ function which is called whenever the width or height [changes](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver), and the element returned by the render function is inserted into the DOM.
263+
For non-top-level elements, as when rendering content within an inline expression, use the built-in [`resize` function](#resize-render) instead. This takes a _render_ function which is called whenever the width or height [changes](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver), and the element returned by the render function is inserted into the DOM.
264264

265265
```html echo
266266
<div class="card">

0 commit comments

Comments
 (0)