Skip to content

Commit

Permalink
fix: fired event callbacks should be bound to flow instance not globa…
Browse files Browse the repository at this point in the history
…l window object
  • Loading branch information
natural-affinity committed Jan 31, 2015
1 parent f9fbbb2 commit c55b201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
if (this.events.hasOwnProperty(event)) {
each(this.events[event], function (callback) {
preventDefault = callback.apply(this, args.slice(1)) === false || preventDefault;
});
}, this);
}
if (event != 'catchall') {
args.unshift('catchAll');
Expand Down

0 comments on commit c55b201

Please sign in to comment.