From 15b3806937343fb742cdea34eafcab8336e8043d Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 31 Dec 2018 12:14:33 +0100 Subject: [PATCH] Actually validate the input in `AnnotationBorderStyle.setStyle` --- src/core/annotation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/annotation.js b/src/core/annotation.js index cd2dd298e..becd119e6 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -492,11 +492,11 @@ class AnnotationBorderStyle { * * @public * @memberof AnnotationBorderStyle - * @param {Object} style - The style object + * @param {Name} style - The annotation style. * @see {@link shared/util.js} */ setStyle(style) { - if (!style) { + if (!isName(style)) { return; } switch (style.name) {