Skip to content

Commit

Permalink
feat(on): pass the target in the event
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannmoinet committed Sep 15, 2015
1 parent cbbefca commit bc0630d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/super.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ Super.prototype.trigger = function (arg, data) {
if (self.handlers[type] && self.handlers[type].length) {
self.handlers[type].forEach(function (handler) {
handler.call(self, {
type: type
type: type,
target: self
}, data);
});
}
Expand Down

0 comments on commit bc0630d

Please sign in to comment.