liferay / liferay-aui-upgrade-tool

Upgrade themes/plugins from Liferay Portal 6.1 to 6.2
13 stars 94 forks source link

Some toolbar children are ignored with handler properties #17

Closed ipeychev closed 11 years ago

ipeychev commented 11 years ago

Note: this issue was imported, but it was originally created by Robert-Frampton...

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'
    }
);