File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/jupyterlab-manager/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -433,13 +433,15 @@ export abstract class LabWidgetManager extends ManagerBase<Widget>
433
433
return serialize_state ( models , options ) ;
434
434
}
435
435
436
- protected async _handleCommOpen (
436
+ // _handleCommOpen is an attribute, not a method, so `this` is captured in a
437
+ // single object that can be registered and removed
438
+ protected _handleCommOpen = async (
437
439
comm : Kernel . IComm ,
438
440
msg : KernelMessage . ICommOpenMsg
439
- ) : Promise < void > {
441
+ ) : Promise < void > => {
440
442
const oldComm = new shims . services . Comm ( comm ) ;
441
443
await this . handle_comm_open ( oldComm , msg ) ;
442
- }
444
+ } ;
443
445
444
446
protected _restored = new Signal < this, void > ( this ) ;
445
447
protected _restoredStatus = false ;
You can’t perform that action at this time.
0 commit comments