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

Commit 0e885ef

Browse files
committed
Fix #4
1 parent d425d55 commit 0e885ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports.install = function (Vue) {
1616
// determine event type
1717
var event = this.arg
1818
var recognizerType, recognizer
19-
19+
2020
if (customeEvents[event]) { // custom event
2121

2222
var custom = customeEvents[event]
@@ -67,7 +67,7 @@ exports.install = function (Vue) {
6767

6868
unbind: function () {
6969
this.mc.off(this.arg, this.handler)
70-
if (!this.mc.handlers.length) {
70+
if (!Object.keys(this.mc.handlers).length) {
7171
this.mc.destroy()
7272
this.el.hammer = null
7373
}

0 commit comments

Comments
 (0)