mirror of
https://github.com/vale981/event-pubsub
synced 2025-03-05 09:31:42 -05:00
fix for off *,*
This commit is contained in:
parent
081dcafd18
commit
8e866e6508
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ window.pubsub=(
|
||||||
i++
|
i++
|
||||||
){
|
){
|
||||||
params.unshift(keys[i]);
|
params.unshift(keys[i]);
|
||||||
this.off.call(params);
|
this.off.apply(this,params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ function unsub(type,handler){
|
||||||
i++
|
i++
|
||||||
){
|
){
|
||||||
params.unshift(keys[i]);
|
params.unshift(keys[i]);
|
||||||
this.off.call(params);
|
this.off.apply(this,params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue