Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix destroy() by adding a missing 'this'

  • Loading branch information...
commit cb8bfc0318379a381d565c059aff9f94db12b0a2 1 parent efef11f
Matt Holden authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/swipeview.js
View
2  src/swipeview.js
@@ -96,7 +96,7 @@ var SwipeView = (function(){
destroy: function () {
var i, l;
- for (i=0, l=customEvents.length; i<l; i++) {
+ for (i=0, l=this.customEvents.length; i<l; i++) {
this.wrapper.removeEventListener('swipeview-' + this.customEvents[i][0], this.customEvents[i][1], false);
}
Please sign in to comment.
Something went wrong with that request. Please try again.