浏览代码

[spark] Send all the snippet to close when leaving the notebook

Mostly for Impala now, we do nothing special for Spark sessions.
Romain Rigaux 10 年之前
父节点
当前提交
040d52a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/spark/src/spark/static/spark/js/spark.ko.js

+ 1 - 1
apps/spark/src/spark/static/spark/js/spark.ko.js

@@ -610,7 +610,7 @@ var Notebook = function (vm, notebook) {
   self.close = function () {
     if (self.id() != null) {
       $.post("/spark/api/notebook/close", {
-        "notebook": ko.mapping.toJSON(self.getContext())
+        "notebook": ko.mapping.toJSON(self)
       });
     }
   };