2016-02-08 43 views
5

我下載了hammer-time.min.js,當我運行時,我在瀏覽器中收到異常。hammer-time.min.js包含未定義的函數hasTouchNone

TypeError: this.hasTouchNone is not a function. (In 'this.hasTouchNone(a.target)', 'this.hasTouchNone' is undefined)

我是否缺少圖書館?

更新: 我試過了下載完整的Javascript(非縮小版)。它工作正常。當我檢查代碼時,hasTouchNone函數不在代碼中。

+1

你說得對,我面臨着同樣的問題,精縮和普通版本不同,謝謝你的自我的答案。 – woheras

+0

謝謝。解決了這個問題 – JustBasti

+0

這應該報告給項目,https://github.com/hammerjs/hammer-time/issues –

回答

0

看起來你自己用的答案是:

Update: I have tried downloading the full Javascript (non-minified version). And >it is working fine. When I checked the code, the hasTouchNone function is not in >the code.