Permalink
Browse files

Wow, that wasn't even close to being correct

  • Loading branch information...
1 parent f2e7888 commit ee2ece3484f1c20cd812b333e7f1f941593818ba @leemachin committed Mar 2, 2014
Showing with 2 additions and 4 deletions.
  1. +2 −4 say-cheese.js
View
6 say-cheese.js
@@ -52,10 +52,8 @@ var SayCheese = (function() {
};
SayCheese.prototype.off = function off(evt, handler) {
- this.events = this.events[evt].filter(function(h) {
- if (h !== handler) {
- return h;
- }
+ this.events[evt] = this.events[evt].filter(function(h) {
+ return h !== handler;
});
};

0 comments on commit ee2ece3

Please sign in to comment.