Skip to content

Commit

Permalink
Work around mousetrap listener leak
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwittenburg committed Jan 6, 2021
1 parent d63111d commit 8554168
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions client/package-lock.json

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

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@girder/components": "git+https://github.com/girder/girder_web_components.git#v2.2.6",
"bluebird": "^3.5.5",
"itk": "^9.1.1",
"mousetrap": "~1.6.2",
"mousetrap": "scottwittenburg/mousetrap#fix-listener-leak",
"vtk.js": "14.16.5",
"vue": "^2.6.10",
"vue-async-computed": "^3.5.1",
Expand Down
2 changes: 1 addition & 1 deletion client/src/vue-utilities/v-mousetrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function bind(el, value, bindElement) {
}

function unbind(el) {
el.mousetrap.reset();
el.mousetrap.destroy();
}

export default function install(Vue) {
Expand Down

0 comments on commit 8554168

Please sign in to comment.