Merge pull request #2145 from tdiprima/patch-1

updated conditional expression
This commit is contained in:
Ian Gilman 2022-05-02 14:33:57 -07:00 committed by GitHub
commit 3aca527360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1986,7 +1986,7 @@ function OpenSeadragon( options ){
*/ */
setElementPointerEvents: function( element, value ) { setElementPointerEvents: function( element, value ) {
element = $.getElement( element ); element = $.getElement( element );
if ( typeof element.style.pointerEvents !== 'undefined' ) { if (typeof element.style !== 'undefined' && typeof element.style.pointerEvents !== 'undefined' ) {
element.style.pointerEvents = value; element.style.pointerEvents = value;
} }
}, },