summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-14 12:21:17 +0200
committerGitHub <noreply@github.com>2018-05-14 12:21:17 +0200
commit1dd67a7935457abcf03f1581f58d4d0de972e559 (patch)
treeadf61061e13aca653986e66c35ff0c975895a8de
parent6a855dbdcf6e683ff5217d058906c1ebcaa71d9a (diff)
parentfaf4b17b3cc192a989a6c0b36a0973c04ddab3c0 (diff)
downloadUXP-1dd67a7935457abcf03f1581f58d4d0de972e559.tar
UXP-1dd67a7935457abcf03f1581f58d4d0de972e559.tar.gz
UXP-1dd67a7935457abcf03f1581f58d4d0de972e559.tar.lz
UXP-1dd67a7935457abcf03f1581f58d4d0de972e559.tar.xz
UXP-1dd67a7935457abcf03f1581f58d4d0de972e559.zip
Merge pull request #351 from janekptacijarabaci/aboutSessionRestore_error_2
about:welcomeback - fix an error "invalid 'in' operand gTreeData[idx]" in aboutSessionRestore.js
-rw-r--r--browser/components/sessionstore/content/aboutSessionRestore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/browser/components/sessionstore/content/aboutSessionRestore.js b/browser/components/sessionstore/content/aboutSessionRestore.js
index 165f48041..8f265235d 100644
--- a/browser/components/sessionstore/content/aboutSessionRestore.js
+++ b/browser/components/sessionstore/content/aboutSessionRestore.js
@@ -289,7 +289,9 @@ var treeView = {
get rowCount() { return gTreeData.length; },
setTree: function(treeBox) { this.treeBox = treeBox; },
getCellText: function(idx, column) { return gTreeData[idx].label; },
- isContainer: function(idx) { return "open" in gTreeData[idx]; },
+ isContainer: function(idx) {
+ return gTreeData[idx] ? "open" in gTreeData[idx] : false;
+ },
getCellValue: function(idx, column){ return gTreeData[idx].checked; },
isContainerOpen: function(idx) { return gTreeData[idx].open; },
isContainerEmpty: function(idx) { return false; },