Skip to content

Initialize _events property #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/widgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
div: string
}

export interface Ref {

Check warning on line 31 in src/widgets.ts

View workflow job for this annotation

GitHub Actions / build

Interface name `Ref` must match the RegExp: /^I[A-Z]/u
id: string
}

export interface DocumentChanged {

Check warning on line 35 in src/widgets.ts

View workflow job for this annotation

GitHub Actions / build

Interface name `DocumentChanged` must match the RegExp: /^I[A-Z]/u
event: 'jsevent'
kind: string
}

export interface ModelChanged extends DocumentChanged {

Check warning on line 40 in src/widgets.ts

View workflow job for this annotation

GitHub Actions / build

Interface name `ModelChanged` must match the RegExp: /^I[A-Z]/u
event: 'jsevent'
kind: 'ModelChanged'
model: Ref
Expand All @@ -45,7 +45,7 @@
attr: string
}

export interface MessageSent extends DocumentChanged {

Check warning on line 48 in src/widgets.ts

View workflow job for this annotation

GitHub Actions / build

Interface name `MessageSent` must match the RegExp: /^I[A-Z]/u
event: 'jsevent'
kind: 'MessageSent'
msg_data: {
Expand Down Expand Up @@ -97,6 +97,7 @@
this._idle = true
this._combine = true
this._msgs = []
this._events = []
const { Receiver } = bk_require('protocol/receiver')
this._receiver = new Receiver()
this.model.on('change:render_bundle', () => this.render())
Expand Down
Loading