芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/livewire/livewire/js/HookManager.js
import MessageBus from './MessageBus' export default { availableHooks: [ /** * Public Hooks */ 'component.initialized', 'element.initialized', 'element.updating', 'element.updated', 'element.removed', 'message.sent', 'message.failed', 'message.received', 'message.processed', /** * Private Hooks */ 'interceptWireModelSetValue', 'interceptWireModelAttachListener', 'beforeReplaceState', 'beforePushState', ], bus: new MessageBus(), register(name, callback) { if (! this.availableHooks.includes(name)) { throw `Livewire: Referencing unknown hook: [${name}]` } this.bus.register(name, callback) }, call(name, ...params) { this.bus.call(name, ...params) }, }