Skip to content

Commit

Permalink
minor readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrchk committed Oct 8, 2018
1 parent 2ca9cf7 commit 0044870
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swup",
"version": "1.3.2",
"version": "1.3.3",
"description": "Animated page transitions with css.",
"main": "lib/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ swup.options.cache = true;

or remove page from cache
```javascript
// enable cache
// remove page from cache
swup.cache.remove('/your-url');
```

Expand All @@ -417,8 +417,8 @@ swup.loadPage({
data: data, // data passed into XMLHttpRequest send method
});

// scroll page to some position (2000px form top in this example)
swup.scrollTo(window, 2000);
// scroll page to some position (2000px from top in this example)
swup.scrollTo(document.body, 2000);
```
**Note:** `loadPage` function is used to submit forms with swup.
For more information on submitting forms with `XMLHttpRequest`, refer to [Sending forms through JavaScript](https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Sending_forms_through_JavaScript).
Expand Down

0 comments on commit 0044870

Please sign in to comment.