fix: `Player#hasHistory` have not to need a filter.
This commit is contained in:
parent
96d7a749c1
commit
a8b2128537
|
@ -26747,6 +26747,7 @@
|
|||
},
|
||||
hasHistory:function(key,filter,last){
|
||||
const history=this.getHistory(key);
|
||||
if(!filter||typeof filter!="function") filter=lib.filter.all;
|
||||
if(last){
|
||||
const lastIndex=history.indexOf(last);
|
||||
return history.some((event,index)=>{
|
||||
|
|
Loading…
Reference in New Issue