mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +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 ){
|
||||
if( typeof(data) === "string" ) {
|
||||
var tmp = new DOMParser();
|
||||
data = tmp.parseFromString( data , "text/xml" );
|
||||
data = $.parseXml( data );
|
||||
}
|
||||
var $TileSource = $.TileSource.determineType( _this, data, url );
|
||||
if ( !$TileSource ) {
|
||||
|
Loading…
Reference in New Issue
Block a user