[Mypal] Make getCellProperties a bit more robust.

master
Fedor 2020-04-03 20:56:18 +03:00
parent f7e41c31c6
commit 5126acbf62
1 changed files with 7 additions and 1 deletions

View File

@ -42,7 +42,13 @@ var AutoCompleteTreeView = {
getParentIndex: function(idx) { return -1; },
hasNextSibling: function(idx, after) { return idx < this.results.length - 1 },
toggleOpenState: function(idx) { },
getCellProperties: function(idx, column) { return this.results[idx].style || ""; },
getCellProperties: function(idx, column) {
if (this.results && this.results[idx]) {
return this.results[idx].style || "";
} else {
return "";
}
},
getRowProperties: function(idx) { return ""; },
getImageSrc: function(idx, column) { return null; },
getProgressMode : function(idx, column) { },