From be8a69a52c4ec41eeb8d2a2243836fff8ae63f7c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 8 Sep 2016 12:40:51 +0200 Subject: [PATCH] Ensure that we provide the `source` parameter when dispatching the button click events in `SecondaryToolbar` (PR 7313 follow-up) --- web/secondary_toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/secondary_toolbar.js b/web/secondary_toolbar.js index 1d1358666..d4671bd5d 100644 --- a/web/secondary_toolbar.js +++ b/web/secondary_toolbar.js @@ -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();