-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to simplify the fileattachmentannotation
event dispatching
#10119
Attempt to simplify the fileattachmentannotation
event dispatching
#10119
Conversation
This attempts to reduced the level of indirection, and the amount of code, when dispatching `fileattachmentannotation` events, by removing the `PDFLinkService.onFileAttachmentAnnotation` method and just accessing `PDFLinkService.eventBus` directly in the `FileAttachmentAnnotationElement` constructor. Given that other properties, such as `externalLinkTarget`/`externalLinkRel`, are already being accessed directly this pattern seems fine here as well.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/7d761ef8032b030/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/f977e1b19efc36b/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/7d761ef8032b030/output.txt Total script time: 19.73 mins
|
From: Bot.io (Windows)FailedFull output at http://54.215.176.217:8877/f977e1b19efc36b/output.txt Total script time: 24.15 mins
Image differences available at: http://54.215.176.217:8877/f977e1b19efc36b/reftest-analyzer.html#web=eq.log |
Hopefully just a Windows intermittent... /botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/03ec27a7a072146/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/03ec27a7a072146/output.txt Total script time: 23.96 mins
|
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/565911aedcbce8b/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/565911aedcbce8b/output.txt Total script time: 2.93 mins Published |
Much simpler; thanks! |
This attempts to reduced the level of indirection, and the amount of code, when dispatching
fileattachmentannotation
events, by removing thePDFLinkService.onFileAttachmentAnnotation
method and just accessingPDFLinkService.eventBus
directly in theFileAttachmentAnnotationElement
constructor.Given that other properties, such as
externalLinkTarget
/externalLinkRel
, are already being accessed directly this pattern seems fine here as well.