File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export class BokehView extends DOMWidgetView {
83
83
private _receiver: Receiver
84
84
private _blocked: boolean
85
85
private _msgs: any[]
86
+ private _events: any[]
86
87
private _idle: boolean
87
88
private _combine: boolean
88
89
@@ -175,7 +176,7 @@ export class BokehView extends DOMWidgetView {
175
176
if (
176
177
msg.msg_data.event_values.model == null ||
177
178
msg.msg_data.event_values.model.id !=
178
- new_msg.msg_data.event_values.model.id ||
179
+ new_msg.msg_data.event_values.model.id ||
179
180
msg.msg_data.event_name != new_msg.msg_data.event_name
180
181
) {
181
182
new_msgs.push(msg)
@@ -198,6 +199,7 @@ export class BokehView extends DOMWidgetView {
198
199
199
200
protected _change_event(event: DocumentChangedEvent): void {
200
201
if (this._blocked) {
202
+ this._events.push(event)
201
203
return
202
204
}
203
205
const { Serializer } = bk_require('core/serialization')
@@ -228,6 +230,11 @@ export class BokehView extends DOMWidgetView {
228
230
this._document.apply_json_patch(comm_msg.content, comm_msg.buffers)
229
231
} finally {
230
232
this._blocked = false
233
+ const events = [...this._events]
234
+ this._events = []
235
+ for (const event of events) {
236
+ this._change_event(event)
237
+ }
231
238
}
232
239
}
233
240
}
You can’t perform that action at this time.
0 commit comments