Skip to content

Commit

Permalink
Merge pull request #6669 from ian-r-rose/fix-busy-status
Browse files Browse the repository at this point in the history
Fix usage of bind in application busy status.
  • Loading branch information
jasongrout committed Jun 21, 2019
2 parents 95b67f7 + a8ccd94 commit e2c0c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/console-extension/src/index.ts
Expand Up @@ -233,7 +233,7 @@ async function activateConsole(
contentFactory,
mimeTypeService: editorServices.mimeTypeService,
rendermime,
setBusy: status ? status.setBusy.bind(status) : undefined,
setBusy: status && (() => status.setBusy()),
...(options as Partial<ConsolePanel.IOptions>)
});

Expand Down
2 changes: 1 addition & 1 deletion packages/docmanager-extension/src/index.ts
Expand Up @@ -123,7 +123,7 @@ const docManagerPlugin: JupyterFrontEndPlugin<IDocumentManager> = {
manager,
opener,
when,
setBusy: status.setBusy.bind(app)
setBusy: status && (() => status.setBusy())
});

// Register the file operations commands.
Expand Down

0 comments on commit e2c0c5a

Please sign in to comment.