Event handling for aui-toolbar children has changed #9

Closed
Robert-Frampton opened this Issue Aug 23, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

Robert-Frampton commented Aug 23, 2013

Currently in trunk, using the handler property on the children of aui-toolbars does not work.

toolbarChildren.push(
    {
        icon: 'add',
        label: 'button',
        handler: function(event) {
            someFunction();
        }
    }
);

Instead we are using the onClick event.

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

When upgrading this is a hassle to change, especially if the toolbar has many children. If the UT could handle these changes it would save the developer a lot of time and possible confusion.

ipeychev closed this in cf4fb14 Aug 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment