mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 914444. Deal with groupItem() being called after our GroupItem has been uninitialized. r=ttaubert
This commit is contained in:
parent
505b47db7a
commit
7c4cd424a0
@ -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