Page MenuHomeSealhub

delegate-listener.ts
No OneTemporary

Authored By
Unknown
Size
364 B
Referenced Files
None
Subscribers
None

delegate-listener.ts

import { CollectionEvent, CollectionCallback } from "../chip-types/collection";
import { App } from "../main";
export class EventDescription {
constructor(
public collection_name: string,
public event_name: CollectionEvent
) {}
attachTo(app: App, callback: CollectionCallback) {
app.collections[this.collection_name].on(this.event_name, callback);
}
}

File Metadata

Mime Type
application/javascript
Expires
Sat, Nov 28, 01:46 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1216514
Default Alt Text
delegate-listener.ts (364 B)

Event Timeline