Actually validate the input in AnnotationBorderStyle.setStyle
This commit is contained in:
parent
85363f4566
commit
15b3806937
@ -492,11 +492,11 @@ class AnnotationBorderStyle {
|
|||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
* @memberof AnnotationBorderStyle
|
* @memberof AnnotationBorderStyle
|
||||||
* @param {Object} style - The style object
|
* @param {Name} style - The annotation style.
|
||||||
* @see {@link shared/util.js}
|
* @see {@link shared/util.js}
|
||||||
*/
|
*/
|
||||||
setStyle(style) {
|
setStyle(style) {
|
||||||
if (!style) {
|
if (!isName(style)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (style.name) {
|
switch (style.name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user