Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
docs: update docs with new keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
sebnitu committed Aug 12, 2020
1 parent ced46dc commit 0d44c39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Import and instantiate ScrollStash in your scripts:

```js
import ScrollStash from 'scroll-stash';
const scrollStash = ScrollStash({ autoInit: true });
const scrollStash = new ScrollStash({ autoInit: true });
```

It's also possible to include ScrollStash using a script tag:
Expand All @@ -35,7 +35,7 @@ It's also possible to include ScrollStash using a script tag:

<!-- Instantiate ScrollStash in your scripts -->
<script>
const scrollStash = ScrollStash();
const scrollStash = new ScrollStash();
scrollStash.init();
</script>
```
Expand Down Expand Up @@ -105,7 +105,7 @@ Initializes the `scroll-stash` instance.
- `options` (optional) An options object. This will be merged with the options passed during instantiation.

```js
const scrollStash = ScrollStash();
const scrollStash = new ScrollStash();
scrollStash.init();

// Or, pass in some options:
Expand All @@ -120,7 +120,7 @@ scrollStash.init({
Destroys the previously initialized `scroll-stash` instance.

```js
const scrollStash = ScrollStash();
const scrollStash = new ScrollStash();
scrollStash.init();
// ...
scrollStash.destroy();
Expand Down

0 comments on commit 0d44c39

Please sign in to comment.