Skip to content

Commit 4c58b61

Browse files
authored
Fix typo in JS docs (#4038)
s/manipluate/manipulate
1 parent 9412717 commit 4c58b61

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

assets/js/phoenix_live_view/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export interface LiveSocketInstanceInterface {
246246
*/
247247
execJS(el: HTMLElement, encodedJS: string, eventType?: string | null): void;
248248
/**
249-
* Returns an object with methods to manipluate the DOM and execute JavaScript.
249+
* Returns an object with methods to manipulate the DOM and execute JavaScript.
250250
* The applied changes integrate with server DOM patching.
251251
*
252252
* See [JavaScript interoperability](https://hexdocs.pm/phoenix_live_view/js-interop.html) for more information.

assets/js/phoenix_live_view/live_socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export default class LiveSocket {
225225
}
226226

227227
/**
228-
* Returns an object with methods to manipluate the DOM and execute JavaScript.
228+
* Returns an object with methods to manipulate the DOM and execute JavaScript.
229229
* The applied changes integrate with server DOM patching.
230230
*
231231
* @returns {import("./js_commands").LiveSocketJSCommands}

assets/js/phoenix_live_view/view_hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface HookInterface<E extends HTMLElement = HTMLElement> {
6666
reconnected?: () => void;
6767

6868
/**
69-
* Returns an object with methods to manipluate the DOM and execute JavaScript.
69+
* Returns an object with methods to manipulate the DOM and execute JavaScript.
7070
* The applied changes integrate with server DOM patching.
7171
*/
7272
js(): HookJSCommands;

guides/client/js-interop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The `liveSocket` instance exposes the following methods:
3535
- `enableLatencySim(milliseconds)` - turns on latency simulation, see [Simulating latency](#simulating-latency)
3636
- `disableLatencySim()` - turns off latency simulation
3737
- `execJS(el, encodedJS)` - executes encoded JavaScript in the context of the element
38-
- `js()` - returns an object with methods to manipluate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
38+
- `js()` - returns an object with methods to manipulate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
3939

4040
## Debugging client events
4141

@@ -184,7 +184,7 @@ The above life-cycle callbacks have in-scope access to the following attributes:
184184
on the server-side. Dispatching new uploads triggers an input change event which will be sent to the
185185
LiveComponent or LiveView the `selectorOrTarget` is defined in, where its value can be either a query selector or an
186186
actual DOM element. If the query selector returns more than one live file input, an error will be logged.
187-
* `js()` - returns an object with methods to manipluate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
187+
* `js()` - returns an object with methods to manipulate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
188188

189189
For example, the markup for a controlled input for phone-number formatting could be written
190190
like this:

0 commit comments

Comments
 (0)