Permalink
Browse files

Fix issue #27, event handler removal failing.

  • Loading branch information...
1 parent e6a315a commit c84dc8f97b595735ca956d8a391449ec1307c629 @koggdal committed Feb 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/events.js
View
@@ -46,7 +46,7 @@
else {
index = handlers.indexOf(handler);
if (~index) {
- delete handlers[index];
+ handlers.splice(index, 1);
}
}
}

0 comments on commit c84dc8f

Please sign in to comment.