Skip to content

Commit

Permalink
Merge pull request #25 from Amphiluke/issue-24
Browse files Browse the repository at this point in the history
Revise widget removal from the DOM
  • Loading branch information
Amphiluke authored Jan 18, 2024
2 parents a31c7bb + 5cf60b3 commit 4575125
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 120 deletions.
4 changes: 2 additions & 2 deletions dist/handy-scroll.es6.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
handy-scroll v1.1.4
handy-scroll v1.1.5
https://amphiluke.github.io/handy-scroll/
(c) 2024 Amphiluke
*/
Expand Down Expand Up @@ -189,7 +189,7 @@ https://amphiluke.github.io/handy-scroll/
instance.eventHandlers.forEach(({el, handlers}) => {
Object.keys(handlers).forEach(event => el.removeEventListener(event, handlers[event], false));
});
instance.widget.parentNode.removeChild(instance.widget);
instance.widget.remove();
instance.eventHandlers = instance.widget = instance.container = instance.scrollBody = null;
}
};
Expand Down
4 changes: 2 additions & 2 deletions dist/handy-scroll.es6.min.js

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

4 changes: 2 additions & 2 deletions dist/handy-scroll.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
handy-scroll v1.1.4
handy-scroll v1.1.5
https://amphiluke.github.io/handy-scroll/
(c) 2024 Amphiluke
*/
Expand Down Expand Up @@ -194,7 +194,7 @@ https://amphiluke.github.io/handy-scroll/
return el.removeEventListener(event, handlers[event], false);
});
});
instance.widget.parentNode.removeChild(instance.widget);
instance.widget.remove();
instance.eventHandlers = instance.widget = instance.container = instance.scrollBody = null;
}
};
Expand Down
4 changes: 2 additions & 2 deletions dist/handy-scroll.min.js

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

Loading

0 comments on commit 4575125

Please sign in to comment.