es6 call instead of apply fix for #10

This commit is contained in:
SSMP 2016-10-06 15:48:24 -07:00
parent d1acdd5bd5
commit eb96e92da5
4 changed files with 112 additions and 3 deletions

2
es6.js
View file

@ -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;

View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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": {