Skip to content

Commit

Permalink
(hotfix): off should only use removeEventListener
Browse files Browse the repository at this point in the history
- typo / copy-paste error in last release accidentally changed it
  to `addEventListener`

- publish as v0.2.1
  • Loading branch information
agilgur5 committed Aug 31, 2017
1 parent 26cd1a5 commit 552ce6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-signature-canvas",
"version": "0.2.0",
"version": "0.2.1",
"description": "A signature pad implementation in React",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default class SignatureCanvas extends Component {
this._canvas.removeEventListener("touchmove", this._handleTouchMove)
document.removeEventListener("touchend", this._handleTouchEnd)

window.addEventListener('resize', this._checkClearOnResize)
window.removeEventListener('resize', this._checkClearOnResize)
}

_handleMouseDown = (ev) => {
Expand Down

0 comments on commit 552ce6f

Please sign in to comment.