Skip to content

Commit

Permalink
Ensure element exist in dom when triggerEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
silyont authored Apr 20, 2021
1 parent ee97fbf commit ea4af9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ var vueTouchEvents = {
var $this = $el.$$touchObj;

// get the callback list
var callbacks = $this.callbacks[eventType] || [];
var callbacks = $this && $this.callbacks[eventType] || [];
if (callbacks.length === 0) {
return null;
}
Expand Down

0 comments on commit ea4af9c

Please sign in to comment.