#19, added tags, and tags filtering
This commit is contained in:
@@ -39,6 +39,7 @@ export default {
|
||||
engine.clearScene();
|
||||
engine.stop();
|
||||
engine.tm?.setGame(null);
|
||||
engine.destroy();
|
||||
},
|
||||
|
||||
computed:{
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { useAppStore } from '@/stores/app';
|
||||
|
||||
const debounceData = [];
|
||||
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
@@ -56,6 +58,16 @@ export default {
|
||||
if (this.store?.prefs?.debug){
|
||||
console.log(...args);
|
||||
}
|
||||
}
|
||||
},
|
||||
debounce(fn){
|
||||
let f = debounceData.find(f=>f.fn == fn);
|
||||
if (f){
|
||||
clearTimeout(f.to);
|
||||
}else{
|
||||
f = {fn};
|
||||
debounceData.push(f);
|
||||
}
|
||||
f.to = setTimeout(...arguments);
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user