Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
update events
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Dec 16, 2015
1 parent ac6b6e3 commit bd53f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion events.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@

off: function (obj, eventName, fn) {

obj._callbacks[name] = getCallbacks(obj, eventName).filter(function (i) {
var list = getCallbacks(obj, eventName);
obj._callbacks[name] = list.filter(function (i) {
return i != fn;
});
},
Expand Down

0 comments on commit bd53f58

Please sign in to comment.