浏览代码

[search] Delete widgets when deleting a new column

Romain Rigaux 11 年之前
父节点
当前提交
3122327bf7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/static/js/ko.layout.js

+ 1 - 1
desktop/core/static/js/ko.layout.js

@@ -37,7 +37,7 @@ var Column = function (size, rows) {
   };
   self.addRow = function (row, atBeginning) {
     if (typeof row == "undefined" || row == null) {
-      row = new Row([]);
+      row = new Row([], viewModel); // Hacky but needed when a new row is deleted
     }
     if (typeof atBeginning == "undefined" || atBeginning == null) {
       self.rows.push(row);