[OpenLayers-Commits] r11640 - trunk/openlayers/lib/OpenLayers/Format

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Mar 7 04:25:19 EST 2011


Author: fredj
Date: 2011-03-07 01:25:17 -0800 (Mon, 07 Mar 2011)
New Revision: 11640

Modified:
   trunk/openlayers/lib/OpenLayers/Format/Atom.js
   trunk/openlayers/lib/OpenLayers/Format/Filter.js
   trunk/openlayers/lib/OpenLayers/Format/GeoJSON.js
   trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js
   trunk/openlayers/lib/OpenLayers/Format/JSON.js
   trunk/openlayers/lib/OpenLayers/Format/SLD.js
   trunk/openlayers/lib/OpenLayers/Format/SOSCapabilities.js
   trunk/openlayers/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js
   trunk/openlayers/lib/OpenLayers/Format/SOSGetObservation.js
   trunk/openlayers/lib/OpenLayers/Format/WFSCapabilities.js
   trunk/openlayers/lib/OpenLayers/Format/WFSDescribeFeatureType.js
   trunk/openlayers/lib/OpenLayers/Format/WMSCapabilities.js
   trunk/openlayers/lib/OpenLayers/Format/WMSDescribeLayer.js
   trunk/openlayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js
   trunk/openlayers/lib/OpenLayers/Format/WMTSCapabilities.js
Log:
remove 'empty' initialize method (method that only call the parent class). r=bartvde (closes #3147)

Modified: trunk/openlayers/lib/OpenLayers/Format/Atom.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/Atom.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/Atom.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -60,18 +60,6 @@
     xy: false,
     
     /**
-     * Constructor: OpenLayers.Format.AtomEntry
-     * Create a new parser for Atom.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-    
-    /**
      * APIMethod: read
      * Return a list of features from an Atom feed or entry document.
      

Modified: trunk/openlayers/lib/OpenLayers/Format/Filter.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/Filter.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/Filter.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -40,18 +40,6 @@
     parser: null,
 
     /**
-     * Constructor: OpenLayers.Format.Filter
-     * Create a new parser for Filter.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-
-    /**
      * APIMethod: write
      * Write an ogc:Filter given a filter object.
      *

Modified: trunk/openlayers/lib/OpenLayers/Format/GeoJSON.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/GeoJSON.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/GeoJSON.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -33,18 +33,6 @@
     ignoreExtraDims: false,
     
     /**
-     * Constructor: OpenLayers.Format.GeoJSON
-     * Create a new parser for GeoJSON.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.JSON.prototype.initialize.apply(this, [options]);
-    },
-
-    /**
      * APIMethod: read
      * Deserialize a GeoJSON string.
      *

Modified: trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -76,18 +76,6 @@
     xy: false,
     
     /**
-     * Constructor: OpenLayers.Format.GeoRSS
-     * Create a new parser for GeoRSS.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-    
-    /**
      * Method: createGeometryFromItem
      * Return a geometry from a GeoRSS Item.
      *

Modified: trunk/openlayers/lib/OpenLayers/Format/JSON.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/JSON.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/JSON.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -68,18 +68,6 @@
     })(),
 
     /**
-     * Constructor: OpenLayers.Format.JSON
-     * Create a new parser for JSON.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.prototype.initialize.apply(this, [options]);
-    },
-
-    /**
      * APIMethod: read
      * Deserialize a json string.
      *

Modified: trunk/openlayers/lib/OpenLayers/Format/SLD.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/SLD.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/SLD.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -51,18 +51,6 @@
     parser: null,
 
     /**
-     * Constructor: OpenLayers.Format.SLD
-     * Create a new parser for SLD.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-
-    /**
      * APIMethod: write
      * Write a SLD document given a list of styles.
      *

Modified: trunk/openlayers/lib/OpenLayers/Format/SOSCapabilities.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/SOSCapabilities.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/SOSCapabilities.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -35,19 +35,6 @@
     parser: null,     
 
     /**
-     * Constructor: OpenLayers.Format.SOSCapabilities
-     * Create a new parser for SOS capabilities.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-        this.options = options;
-    },
-
-    /**
      * APIMethod: read
      * Read capabilities data from a string, and return information about
      * the service (offering and observedProperty mostly).

Modified: trunk/openlayers/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -60,17 +60,6 @@
     },
     
     /**
-     * Constructor: OpenLayers.Format.SOSGetFeatureOfInterest
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-
-    /**
      * APIMethod: read
      * Parse a GetFeatureOfInterest response and return an array of features
      * 

Modified: trunk/openlayers/lib/OpenLayers/Format/SOSGetObservation.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/SOSGetObservation.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/SOSGetObservation.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -62,17 +62,6 @@
     defaultPrefix: "sos",
 
     /**
-     * Constructor: OpenLayers.Format.SOSGetObservation
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-
-    /**
      * Method: read
      * 
      * Parameters: 

Modified: trunk/openlayers/lib/OpenLayers/Format/WFSCapabilities.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WFSCapabilities.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/WFSCapabilities.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -29,19 +29,6 @@
     version: null,
 
     /**
-     * Constructor: OpenLayers.Format.WFSCapabilities
-     * Create a new parser for WFS capabilities.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-        this.options = options;
-    },
-
-    /**
      * APIMethod: read
      * Read capabilities data from a string, and return a list of layers. 
      * 
@@ -77,4 +64,4 @@
     
     CLASS_NAME: "OpenLayers.Format.WFSCapabilities" 
 
-});
\ No newline at end of file
+});

Modified: trunk/openlayers/lib/OpenLayers/Format/WFSDescribeFeatureType.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WFSDescribeFeatureType.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/WFSDescribeFeatureType.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -22,20 +22,8 @@
     namespaces: {
         xsd: "http://www.w3.org/2001/XMLSchema"
     },
-    
+        
     /**
-     * Constructor: OpenLayers.Format.WFSDescribeFeatureType
-     * Create a new parser for WFS DescribeFeatureType responses.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-    },
-    
-    /**
      * Property: readers
      * Contains public functions, grouped by namespace prefix, that will
      *     be applied when a namespaced node is found matching the function
@@ -195,4 +183,4 @@
     
     CLASS_NAME: "OpenLayers.Format.WFSDescribeFeatureType" 
 
-});
\ No newline at end of file
+});

Modified: trunk/openlayers/lib/OpenLayers/Format/WMSCapabilities.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WMSCapabilities.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/WMSCapabilities.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -44,19 +44,6 @@
     parser: null,
 
     /**
-     * Constructor: OpenLayers.Format.WMSCapabilities
-     * Create a new parser for WMS capabilities.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-        this.options = options;
-    },
-
-    /**
      * APIMethod: read
      * Read capabilities data from a string, and return a list of layers. 
      * 
@@ -90,4 +77,4 @@
     
     CLASS_NAME: "OpenLayers.Format.WMSCapabilities" 
 
-});
\ No newline at end of file
+});

Modified: trunk/openlayers/lib/OpenLayers/Format/WMSDescribeLayer.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WMSDescribeLayer.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/WMSDescribeLayer.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -30,19 +30,6 @@
     version: null,
 
     /**
-     * Constructor: OpenLayers.Format.WMSDescribeLayer
-     * Create a new parser for WMS DescribeLayer responses.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-        this.options = options;
-    },
-
-    /**
      * APIMethod: read
      * Read DescribeLayer data from a string, and return the response. 
      * The OGC currently defines 2 formats which are allowed for output,

Modified: trunk/openlayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -49,20 +49,6 @@
     gmlFormat: null,
 
     /**
-     * Constructor: OpenLayers.Format.WMSGetFeatureInfo
-     * Create a new parser for WMS GetFeatureInfo responses
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, arguments);
-        OpenLayers.Util.extend(this, options);
-        this.options = options;
-    },
-
-    /**
      * APIMethod: read
      * Read WMS GetFeatureInfo data from a string, and return an array of features
      *

Modified: trunk/openlayers/lib/OpenLayers/Format/WMTSCapabilities.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WMTSCapabilities.js	2011-03-07 09:25:07 UTC (rev 11639)
+++ trunk/openlayers/lib/OpenLayers/Format/WMTSCapabilities.js	2011-03-07 09:25:17 UTC (rev 11640)
@@ -48,19 +48,6 @@
     },
 
     /**
-     * Constructor: OpenLayers.Format.WMTSCapabilities
-     * Create a new parser for WMTS capabilities.
-     *
-     * Parameters:
-     * options - {Object} An optional object whose properties will be set on
-     *     this instance.
-     */
-    initialize: function(options) {
-        OpenLayers.Format.XML.prototype.initialize.apply(this, [options]);
-        this.options = options;
-    },
-
-    /**
      * APIMethod: read
      * Read capabilities data from a string, and return information about
      * the service (offering and observedProperty mostly).



More information about the Commits mailing list