Permalink
Browse files

Merge pull request #6 from Hactile/master

destroy() is broken
  • Loading branch information...
2 parents efef11f + cb8bfc0 commit 6131ae29de07dd1724f8e8161edbb344b2402e96 @cubiq committed Dec 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/swipeview.js
View
@@ -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 6131ae2

Please sign in to comment.