Browse Source

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

Jonas Jenwald 9 years ago
parent
commit
be8a69a52c
  1. 2
      web/secondary_toolbar.js

2
web/secondary_toolbar.js

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

Loading…
Cancel
Save