mirror of
https://github.com/vale981/event-pubsub
synced 2025-03-04 17:11:38 -05:00
commit
07262a784a
2 changed files with 2 additions and 2 deletions
2
es6.js
2
es6.js
|
@ -75,7 +75,7 @@ class EventPubSub {
|
|||
const catchAll=this._events_['*'];
|
||||
|
||||
for(let handler of catchAll){
|
||||
handler.apply(this, args);
|
||||
handler.apply(this, type, args);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
|
@ -75,7 +75,7 @@ window.EventPubSub=class EventPubSub {
|
|||
const catchAll=this._events_['*'];
|
||||
|
||||
for(let handler of catchAll){
|
||||
handler.apply(this, args);
|
||||
handler.apply(this, type, args);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Add table
Reference in a new issue