mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
check length instead of undefined for DisplayRect nodes tagname ns fallback
This commit is contained in:
parent
df90308b0e
commit
0d92737ff2
@ -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…
Reference in New Issue
Block a user