mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Ensure that we provide the source
parameter when dispatching the button click events in SecondaryToolbar
(PR 7313 follow-up)
This commit is contained in:
parent
6e126b31dc
commit
be8a69a52c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue