ipeychev / liferay-aui-upgrade-tool

1 stars 1 forks source link

Some toolbar children are ignored with handler properties #17

Closed robframpton closed 11 years ago

robframpton commented 11 years ago

The LAUT ignores children of toolbars that are not pushed into a config object and passed directly into the toolbar constructor.

new A.Toolbar(
    {
        children: [
            {
                handler: function(event) {
                    instance._editEntry(contact);
                },
                icon: 'edit',
                label: 'label'
            }
        ]
    }
).render();

This handler property would remain the same, but the following would be changed to on: { click

toolbarChildren.push(
    {
        handler: function(event) {
            instance._editEntry(contact);
        },
        icon: 'edit',
        label: 'label'
    }
);