Update as per feedback

This commit is contained in:
Samuel Attard 2017-03-29 15:01:14 +11:00 committed by Kevin Sawicki
parent 2fd62d090a
commit bea56bbdc8
2 changed files with 6 additions and 8 deletions

View file

@ -225,7 +225,7 @@ TouchBar.TouchBarPopover = class TouchBarPopover extends TouchBarItem {
}
this.child.ordereredItems.forEach((item) => {
item._popover = item._popover || []
if (!item._popover.find(itemID => itemID === this.id)) item._popover.push(this.id)
if (!item._popover.includes(this.id)) item._popover.push(this.id)
})
}
}