mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
[Pale-Moon] Make getCellProperties a bit more robust.
This commit is contained in:
parent
f5acafc727
commit
bcbf8e8983
1 changed files with 7 additions and 1 deletions
|
|
@ -42,7 +42,13 @@ var AutoCompleteTreeView = {
|
||||||
getParentIndex: function(idx) { return -1; },
|
getParentIndex: function(idx) { return -1; },
|
||||||
hasNextSibling: function(idx, after) { return idx < this.results.length - 1 },
|
hasNextSibling: function(idx, after) { return idx < this.results.length - 1 },
|
||||||
toggleOpenState: function(idx) { },
|
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 ""; },
|
getRowProperties: function(idx) { return ""; },
|
||||||
getImageSrc: function(idx, column) { return null; },
|
getImageSrc: function(idx, column) { return null; },
|
||||||
getProgressMode : function(idx, column) { },
|
getProgressMode : function(idx, column) { },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue