浏览代码

Bugfix: Correctly check if a cell is registered with the foreign handler.

Afshin Darian 8 年之前
父节点
当前提交
3fe751bc34
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/console/foreign.ts

+ 1 - 1
src/console/foreign.ts

@@ -120,7 +120,7 @@ class ForeignHandler implements IDisposable {
     case 'display_data':
     case 'stream':
     case 'error':
-      if (!(parentMsgId in this._cells)) {
+      if (!this._cells.has(parentMsgId)) {
         // This is an output from an input that was broadcast before our
         // session started listening. We will ignore it.
         console.warn('Ignoring output with no associated input cell.');