Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit 13cce60

Browse files
committed
1 parent 8eaaaa0 commit 13cce60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ exports.install = function (Vue) {
1818
},
1919
unbind: function () {
2020
this.el.hammer.off(this.arg, this.handler)
21-
if (!this.el.hammer._eventHandler.length) {
21+
if (!this.el.hammer.eventHandlers.length) {
22+
this.el.hammer.dispose()
2223
this.el.hammer = null
2324
}
2425
}
2526
})
26-
}
27+
}

0 commit comments

Comments
 (0)