Skip to content

Commit

Permalink
Generates latest documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickypc committed Aug 13, 2019
1 parent 2c2ca8b commit 6820c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const optionsPagePool = new MyPagePool({
async onPageCreated (page) {
// Bound function that will be called after page is created.
},
async onBeforePageDestroy (page) {
async onPageDestroy (page) {
// Bound function that will be called right before page is destroyed.
},
async onValidate (page) {
Expand Down Expand Up @@ -223,7 +223,7 @@ PagePool instantiation options.

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [onBeforePageDestroy] | <code>PoolEventHandler</code> | <code></code> | The function that would be called before page is destroyed. |
| [onPageDestroy] | <code>PoolEventHandler</code> | <code></code> | The function that would be called before page is destroyed. |
| [onPageCreated] | <code>PoolEventHandler</code> | <code></code> | The function that would be called after page created. |
| [onValidate] | <code>PoolEventHandler</code> | <code></code> | The function that would be called to validate page resource validity. |
| [poolOptions] | <code>Object</code> | <code>{}</code> | The pool instantiation options. See https://bit.ly/2GXZbUR |
Expand All @@ -233,7 +233,7 @@ PagePool instantiation options.
**Example**
```js
const options = {
async onBeforePageDestroy (page) {},
async onPageDestroy (page) {},
async onPageCreated(page) {},
async onValidate(page) {},
poolOptions: {},
Expand Down

0 comments on commit 6820c8c

Please sign in to comment.