mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 914444. Deal with groupItem() being called after our GroupItem has been uninitialized. r=ttaubert
This commit is contained in:
parent
4547698ce1
commit
63d5f03f78
@ -2293,6 +2293,10 @@ let GroupItems = {
|
||||
// Given some sort of identifier, returns the appropriate groupItem.
|
||||
// Currently only supports groupItem ids.
|
||||
groupItem: function GroupItems_groupItem(a) {
|
||||
if (!this.groupItems) {
|
||||
// uninit has been called
|
||||
return null;
|
||||
}
|
||||
var result = null;
|
||||
this.groupItems.forEach(function(candidate) {
|
||||
if (candidate.id == a)
|
||||
|
Loading…
Reference in New Issue
Block a user