Open
Description
Currently the "items" container in the menu definition is of type Object
.
This is risky (at best), as the property order is not guaranteed (see: http://stackoverflow.com/a/5525820/1111580)
Instead, a better type would be a list, e.g. storing the items like so:
selector: '.my-menu',
items: [
{ key: 'item1', name: 'Item 1' },
{ ... },
],
Of course, key
I got from the top of my head... probably something more relevant could be chosen.