JS -- Plug PageOpen and PageClose actions

This commit is contained in:
Calixte Denizet 2021-01-05 15:53:30 +01:00
parent ed3758f84d
commit 6523f8880b
5 changed files with 172 additions and 16 deletions

View file

@ -73,11 +73,10 @@ class EventDispatcher {
}
if (id === "doc") {
this._document.obj._dispatchDocEvent(event.name);
}
if (id === "page") {
} else if (id === "page") {
this._document.obj._dispatchPageEvent(
event.name,
baseEvent.action,
baseEvent.actions,
baseEvent.pageNumber
);
}