mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 07:06:10 +03:00
Use $.parseXml for parsing string as XML
This commit is contained in:
parent
2bef2e882f
commit
8f2999da29
@ -300,8 +300,7 @@ $.TileSource.prototype = {
|
|||||||
|
|
||||||
callback = function( data ){
|
callback = function( data ){
|
||||||
if( typeof(data) === "string" ) {
|
if( typeof(data) === "string" ) {
|
||||||
var tmp = new DOMParser();
|
data = $.parseXml( data );
|
||||||
data = tmp.parseFromString( data , "text/xml" );
|
|
||||||
}
|
}
|
||||||
var $TileSource = $.TileSource.determineType( _this, data, url );
|
var $TileSource = $.TileSource.determineType( _this, data, url );
|
||||||
if ( !$TileSource ) {
|
if ( !$TileSource ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user