correct typo in fallback ns logic for pulling display rect nodes

This commit is contained in:
rlskoeser 2014-08-18 14:37:37 -04:00
parent 0d92737ff2
commit 343f9ed367

View File

@ -263,7 +263,7 @@ function configureFromXML( tileSource, xmlDoc ){
dispRectNodes = root.getElementsByTagName( "DisplayRect" );
if (dispRectNodes.length === 0) {
dispRectNodes = root.getElementsByTagNameNS(ns, "DisplayRect" )[ 0 ];
dispRectNodes = root.getElementsByTagNameNS(ns, "DisplayRect" );
}
for ( i = 0; i < dispRectNodes.length; i++ ) {
dispRectNode = dispRectNodes[ i ];