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

Commit

Permalink
Merge pull request #1 from rdsubhas/master
Browse files Browse the repository at this point in the history
Update to match latest version of Hammer
  • Loading branch information
yyx990803 committed Apr 3, 2014
2 parents 8eaaaa0 + 13cce60 commit ff7681d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ exports.install = function (Vue) {
},
unbind: function () {
this.el.hammer.off(this.arg, this.handler)
if (!this.el.hammer._eventHandler.length) {
if (!this.el.hammer.eventHandlers.length) {
this.el.hammer.dispose()
this.el.hammer = null
}
}
})
}
}

0 comments on commit ff7681d

Please sign in to comment.