mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-03 13:53:31 +03:00
check length instead of undefined for DisplayRect nodes tagname ns fallback
This commit is contained in:
parent
df90308b0e
commit
0d92737ff2
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ function configureFromXML( tileSource, xmlDoc ){
|
|||
}
|
||||
|
||||
dispRectNodes = root.getElementsByTagName( "DisplayRect" );
|
||||
if (dispRectNodes === undefined) {
|
||||
if (dispRectNodes.length === 0) {
|
||||
dispRectNodes = root.getElementsByTagNameNS(ns, "DisplayRect" )[ 0 ];
|
||||
}
|
||||
for ( i = 0; i < dispRectNodes.length; i++ ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue