liferay / liferay-aui-upgrade-tool

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

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

Open ipeychev opened 11 years ago

ipeychev commented 11 years ago

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

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