-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Bump bokeh to 3.1.0dev4 #4479
Bump bokeh to 3.1.0dev4 #4479
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4479 +/- ##
==========================================
+ Coverage 74.12% 82.20% +8.08%
==========================================
Files 243 243
Lines 35321 35320 -1
==========================================
+ Hits 26181 29035 +2854
+ Misses 9140 6285 -2855
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
export class DOMEvent extends ModelEvent { | ||
event_name: string = "dom_event" | ||
publish: boolean = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both should be prototype
members, not instance members, though that also works. In bokehjs we use a decorator to make sure this is set up properly:
import {event} from "@bokehjs/core/bokeh_events"
@event("dom_event")
export class DOMEvent extends ModelEvent {
...
}
Alternatively one can use this:
export class DOMEvent extends ModelEvent {
static {
this.prototype.event_name = "dom_event"
this.prototype.publish = true
}
}
I will make a change, so that publish = true
is actually the default, regardless how a event is defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix this in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in bokeh/bokeh#12871.
No description provided.