Skip to content

Commit

Permalink
fix "TypeError: 'undefined' is not an object (evaluating 'touch.el.tr…
Browse files Browse the repository at this point in the history
…igger'), when double tap
  • Loading branch information
zhangbinjue committed May 18, 2016
1 parent 415ee4f commit 139649c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
// (cancelTouch cancels processing of single vs double taps for faster 'tap' response)
var event = $.Event('tap')
event.cancelTouch = cancelAll
touch.el.trigger(event)
// [by paper] fix -> "TypeError: 'undefined' is not an object (evaluating 'touch.el.trigger'), when double tap
if (touch.el) touch.el.trigger(event)

// trigger double tap immediately
if (touch.isDoubleTap) {
Expand Down

0 comments on commit 139649c

Please sign in to comment.