fix: `Player#hasHistory` have not to need a filter.

This commit is contained in:
Rintim 2023-10-06 17:12:14 +08:00
parent 96d7a749c1
commit a8b2128537
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 1 additions and 0 deletions

View File

@ -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)=>{