mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Remove some useless code (#15373 follow-up)
This commit is contained in:
parent
e9bdbe4574
commit
c4aa00bee1
1 changed files with 1 additions and 5 deletions
|
@ -580,11 +580,7 @@ class AnnotationEditorUIManager {
|
|||
* @param {Object} details
|
||||
*/
|
||||
onEditingAction(details) {
|
||||
if (
|
||||
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(
|
||||
details.name
|
||||
)
|
||||
) {
|
||||
if (["undo", "redo", "delete", "selectAll"].includes(details.name)) {
|
||||
this[details.name]();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue