Skip to content

Commit add9f8f

Browse files
authored
Merge pull request #66 from github/joshmgross/docs-listenForBind-batch
Remove references to listenForBind batch argument
2 parents 4c0c5d4 + c935d92 commit add9f8f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/_guide/actions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ class HelloWorldElement extends HTMLElement {
158158

159159
Catalyst doesn't automatically bind actions to elements that are dynamically injected into the DOM. If you need to dynamically inject actions (for example you're injecting HTML via AJAX) you can call the `listenForBind` function to set up a observer that will bind actions when they are added to a controller.
160160

161-
You can provide the element you'd like to observe as a first argument and the number of items to process in a batch as a second argument. Those arguments default to `document` and `30` respectively.
161+
You can provide the element you'd like to observe as a first argument which will default to `document`.
162162

163-
Batch processing binds events in small batches to maintain UI stability (using `requestAnimationFrame` behind the scenes). We recommend the default of `30` as a sensible default, but you may find changing this number helps depending on your requirements.
163+
Batch processing binds events in small batches to maintain UI stability (using `requestAnimationFrame` behind the scenes).
164164

165165
```js
166166
import {listenForBind} from '@github/catalyst'
167167

168-
listenForBind(document, 30)
168+
listenForBind(document)
169169
```

0 commit comments

Comments
 (0)