Skip to content

Menu item container should be a list #283

Open
@neonrust

Description

@neonrust

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions