Skip to content

Commit

Permalink
style(): check gesture exists
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 12, 2015
1 parent c5b35ee commit ef512b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@
* @param {ionic.Gesture} gesture The gesture that should be removed.
* @param {string} eventType The gesture event to remove the listener for.
* @param {function(e)} callback The listener to remove.
*/
offGesture: function(gesture, type, callback) {
gesture.off(type, callback);
gesture && gesture.off(type, callback);
},

handlePopState: function(event) {}
Expand Down

0 comments on commit ef512b8

Please sign in to comment.