remove JSON parsing from format, applications should handle this, as suggested by @ahocevar
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user