mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
update expression
Code fails if element.style is undefined.
This commit is contained in:
parent
2d7be96bdf
commit
e1b651b66c
@ -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;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user