diff --git a/src/openseadragon.js b/src/openseadragon.js index c06a9f56..b3de907f 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1986,7 +1986,7 @@ function OpenSeadragon( options ){ */ setElementPointerEvents: function( element, value ) { element = $.getElement( element ); - if ( typeof element.style.pointerEvents !== 'undefined' ) { + if (typeof element.style !== 'undefined' && typeof element.style.pointerEvents !== 'undefined' ) { element.style.pointerEvents = value; } },