remove JSON parsing from format, applications should handle this, as suggested by @ahocevar

This commit is contained in:
Bart van den Eijnden
2012-11-20 16:36:12 +01:00
parent 14f009e2f7
commit f410cd7e41
2 changed files with 2 additions and 14 deletions

View File

@@ -6,7 +6,6 @@
/**
* @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Format/OGCExceptionReport.js
* @requires OpenLayers/Format/JSON.js
*/
/**
@@ -19,14 +18,6 @@
OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(
OpenLayers.Format.XML, {
/**
* Property: jsonFormat
* {OpenLayers.Format.JSON}
* Parser instance used to parse JSON for cross browser support. The native
* JSON.parse method will be used where available (all except IE<8).
*/
jsonFormat: null,
/**
* Property: regExes
* Compiled regular expressions for manipulating strings.
@@ -158,10 +149,7 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(
this.readChildNodes(node, obj.annotation);
},
"appinfo": function(node, obj) {
if (!this.jsonFormat) {
this.jsonFormat = new OpenLayers.Format.JSON();
}
obj.appinfo = this.jsonFormat.read(this.getChildValue(node));
obj.appinfo = this.getChildValue(node);
},
"documentation": function(node, obj) {
if (!obj.documentation) {