Skip to content

Commit

Permalink
v0.4.6 Resolves #15 and #16: Dispose only created extra DOM, online d…
Browse files Browse the repository at this point in the history
…emo link
  • Loading branch information
dmythro committed Jan 12, 2015
1 parent 51bb6b1 commit 08f050b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ scrolly.disposeAll();

### React Component

See example usage via `gulp watch` and [localhost:3001/react](http://localhost:3001/react/). Or just look at `public/react/index.html` in this repo.
See example usage via `gulp watch` and [/react](https://annexare.com/js/scrolly/react/). Or just look at `public/react/index.html` in this repo.

```jsx
<Scrolly params={ params }>
Expand All @@ -61,7 +61,7 @@ $('.selector').scrolly('dispose');

### Demo

Just open `public/index.html`. Will be published online with `v0.5.0`.
Just open `public/index.html`, or check the [live demo](https://annexare.com/js/scrolly/).

## Details

Expand Down
2 changes: 1 addition & 1 deletion public/js/react-scrolly.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ var dataSet = function initDataSet() {
addClass('area', node);
if (hasClass(name, node.parentNode)) {
// Wrap exists
data.wrap = node;
data.wrap = node.parentNode;
} else {
data.wrap = wrap(node, name);
data.dispose.wrap = true;
Expand Down
2 changes: 1 addition & 1 deletion public/js/react-scrolly.min.js

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

2 changes: 1 addition & 1 deletion public/js/scrolly.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ var dataSet = function initDataSet() {
addClass('area', node);
if (hasClass(name, node.parentNode)) {
// Wrap exists
data.wrap = node;
data.wrap = node.parentNode;
} else {
data.wrap = wrap(node, name);
data.dispose.wrap = true;
Expand Down
Loading

0 comments on commit 08f050b

Please sign in to comment.