Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

Commit

Permalink
Removes timeout option since we can't abort fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
codewithkyle committed Apr 7, 2019
1 parent 59c297d commit ed01042
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
### Removes

- Removes: no longer calls `lastChance()` when the new document contains `<script>` elements
- Removes: `timeout` option from Pjax since we can't abort fetch

# 1.3.0 - 2019-03-27

Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ You can define custom Pjax options using the following:
| history | boolean | `true` |
| cacheBust | boolean | `false` |
| debug | boolean | `false` |
| timeout | number | `0` |
| titleSwitch | boolean | `true` |
| customTransitions | boolean | `false` |
| customPreventionAttributes | string[] | `[]` |
Expand All @@ -92,8 +91,6 @@ When `history` is true Pjax will use `window.history.pushState()` to manipulate

`debug` will tell Pjax to display all debug information.

`timeout` is the about of time allowed before Pjax time's out an `XMLHttpRequest`

`titleSwitch` when true will swap out the documents title during page transitions.

`customTransitions` when true Pjax won't actually switch out the content until the developers application sends a custom `pjax:continue` event.
Expand Down
1 change: 0 additions & 1 deletion lib/parse-options.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/parse-options.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ declare namespace Pjax{
history?: boolean;
cacheBust?: boolean;
debug?: boolean;
timeout?: number;
titleSwitch?: boolean;
customTransitions?: boolean;
customPreventionAttributes?: Array<string>;
Expand Down
1 change: 0 additions & 1 deletion src/lib/parse-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default (options:PJAX.IOptions = null)=>{
parsedOptions.history = (options !== null && options.history !== undefined) ? options.history : true;
parsedOptions.cacheBust = (options !== null && options.cacheBust !== undefined) ? options.cacheBust : false;
parsedOptions.debug = (options !== null && options.debug !== undefined) ? options.debug : false;
parsedOptions.timeout = (options !== null && options.timeout !== undefined) ? options.timeout : 0;
parsedOptions.titleSwitch = (options !== null && options.titleSwitch !== undefined) ? options.titleSwitch : true;
parsedOptions.customTransitions = (options !== null && options.customTransitions !== undefined) ? options.customTransitions : false;
parsedOptions.customPreventionAttributes = (options !== null && options.customPreventionAttributes !== undefined) ? options.customPreventionAttributes : [];
Expand Down

0 comments on commit ed01042

Please sign in to comment.