Ensure that we provide the source parameter when dispatching the button click events in SecondaryToolbar (PR 7313 follow-up)

This commit is contained in:
Jonas Jenwald 2016-09-08 12:40:51 +02:00
parent 6e126b31dc
commit be8a69a52c

View File

@ -127,7 +127,7 @@ var SecondaryToolbar = (function SecondaryToolbarClosure() {
element.addEventListener('click', function (eventName, close) {
if (eventName !== null) {
this.eventBus.dispatch(eventName);
this.eventBus.dispatch(eventName, { source: this, });
}
if (close) {
this.close();