Use $.parseXml for parsing string as XML

This commit is contained in:
gwills 2013-09-24 21:49:54 +01:00
parent 2bef2e882f
commit 8f2999da29

View File

@ -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 ) {