Skip to content
Browse files

Fix destroy() by adding a missing 'this'

  • Loading branch information...
1 parent efef11f commit cb8bfc0318379a381d565c059aff9f94db12b0a2 Matt Holden committed Dec 5, 2011
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);
}

0 comments on commit cb8bfc0

Please sign in to comment.
Something went wrong with that request. Please try again.