mirror of
https://github.com/vale981/event-pubsub
synced 2025-03-04 09:01:38 -05:00
es6 call instead of apply fix for #10
This commit is contained in:
parent
d1acdd5bd5
commit
eb96e92da5
4 changed files with 112 additions and 3 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, type, args);
|
||||
handler.call(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, type, args);
|
||||
handler.call(this, type, args);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
109
npm-debug.log
Normal file
109
npm-debug.log
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "event-pubsub",
|
||||
"version": "4.2.2",
|
||||
"version": "4.2.3",
|
||||
"description": "Super light and fast Extensible PubSub events and EventEmitters for Node and the browser with support for ES6 by default, and ES5 versions for older verions of node and older IE/Safari versions. Easy for any developer level. No frills, just high speed pubsub events!",
|
||||
"main": "event-pubsub.js",
|
||||
"directories": {
|
||||
|
|
Loading…
Add table
Reference in a new issue