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

Commit

Permalink
Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
appedemic committed Oct 9, 2014
1 parent d425d55 commit 0e885ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports.install = function (Vue) {
// determine event type
var event = this.arg
var recognizerType, recognizer

if (customeEvents[event]) { // custom event

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

unbind: function () {
this.mc.off(this.arg, this.handler)
if (!this.mc.handlers.length) {
if (!Object.keys(this.mc.handlers).length) {
this.mc.destroy()
this.el.hammer = null
}
Expand Down

0 comments on commit 0e885ef

Please sign in to comment.