芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/livewire/livewire/js/component/PrefetchManager.js
class PrefetchManager { constructor(component) { this.component = component this.prefetchMessagesByActionId = {} } addMessage(message) { this.prefetchMessagesByActionId[message.prefetchId] = message } actionHasPrefetch(action) { return Object.keys(this.prefetchMessagesByActionId).includes( action.toId() ) } actionPrefetchResponseHasBeenReceived(action) { return !! this.getPrefetchMessageByAction(action).response } getPrefetchMessageByAction(action) { return this.prefetchMessagesByActionId[action.toId()] } clearPrefetches() { this.prefetchMessagesByActionId = {} } } export default PrefetchManager