ipeychev / liferay-aui-upgrade-tool

1 stars 1 forks source link

Changing handler property in toolbar buttons should be formatted differently #19

Closed robframpton closed 2 years ago

robframpton commented 11 years ago

Currently this is how the LAUT will change the handler property of the buttons in a toolbar.

toolbarChildren.push(
    {
        handler: function(event) {
            someFunction();
        },
        icon: 'add-coworker',
    }
);
toolbarChildren.push(
    {
        on: {
        click: function(event) {
            someFunction();
        }},
        icon: 'add-coworker',
    }
);

It should be formatted as.

toolbarChildren.push(
    {
        on: {
            click: function(event) {
                someFunction();
            }
        },
        icon: 'add-coworker',
    }
);