Skip to content

Commit c55b201

Browse files
fix: fired event callbacks should be bound to flow instance not global window object
1 parent f9fbbb2 commit c55b201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
if (this.events.hasOwnProperty(event)) {
200200
each(this.events[event], function (callback) {
201201
preventDefault = callback.apply(this, args.slice(1)) === false || preventDefault;
202-
});
202+
}, this);
203203
}
204204
if (event != 'catchall') {
205205
args.unshift('catchAll');

0 commit comments

Comments
 (0)