mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +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) {
|
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…
Add table
Add a link
Reference in a new issue