Merge pull request #15381 from calixteman/rm_leftover

[Editor] Remove some useless code (#15373 follow-up)
This commit is contained in:
calixteman 2022-09-01 20:38:07 +02:00 committed by GitHub
commit 3043423c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,11 +580,7 @@ class AnnotationEditorUIManager {
* @param {Object} details * @param {Object} details
*/ */
onEditingAction(details) { onEditingAction(details) {
if ( if (["undo", "redo", "delete", "selectAll"].includes(details.name)) {
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(
details.name
)
) {
this[details.name](); this[details.name]();
} }
} }