Use native JSON.parse function

This commit is contained in:
Frederic Junod
2014-03-26 15:29:46 +01:00
parent 36305f7efe
commit 0062759f75
3 changed files with 17 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ ol.source.VectorFile.prototype.handleXhrIo_ = function(event) {
source = xhrIo.getResponse();
goog.asserts.assertInstanceof(source, ArrayBuffer);
} else if (type == ol.format.FormatType.JSON) {
source = xhrIo.getResponseJson();
source = xhrIo.getResponseText();
} else if (type == ol.format.FormatType.TEXT) {
source = xhrIo.getResponseText();
} else if (type == ol.format.FormatType.XML) {