[OpenLayers-Commits] r12386 - in trunk/openlayers/lib/OpenLayers: Filter Geometry Handler Layer Layer/Vector Popup

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sat Sep 17 15:20:42 EDT 2011


Author: fredj
Date: 2011-09-17 12:20:40 -0700 (Sat, 17 Sep 2011)
New Revision: 12386

Modified:
   trunk/openlayers/lib/OpenLayers/Filter/Function.js
   trunk/openlayers/lib/OpenLayers/Filter/Spatial.js
   trunk/openlayers/lib/OpenLayers/Geometry/Curve.js
   trunk/openlayers/lib/OpenLayers/Geometry/LineString.js
   trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js
   trunk/openlayers/lib/OpenLayers/Geometry/MultiLineString.js
   trunk/openlayers/lib/OpenLayers/Geometry/MultiPoint.js
   trunk/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js
   trunk/openlayers/lib/OpenLayers/Geometry/Polygon.js
   trunk/openlayers/lib/OpenLayers/Geometry/Surface.js
   trunk/openlayers/lib/OpenLayers/Handler/Click.js
   trunk/openlayers/lib/OpenLayers/Handler/Hover.js
   trunk/openlayers/lib/OpenLayers/Handler/Path.js
   trunk/openlayers/lib/OpenLayers/Handler/Pinch.js
   trunk/openlayers/lib/OpenLayers/Handler/Polygon.js
   trunk/openlayers/lib/OpenLayers/Layer/ArcGIS93Rest.js
   trunk/openlayers/lib/OpenLayers/Layer/ArcIMS.js
   trunk/openlayers/lib/OpenLayers/Layer/TMS.js
   trunk/openlayers/lib/OpenLayers/Layer/Vector/RootContainer.js
   trunk/openlayers/lib/OpenLayers/Layer/WMS.js
   trunk/openlayers/lib/OpenLayers/Popup/FramedCloud.js
Log:
remove unneeded destroy and initialize function. r=erilem (closes #3341)

Modified: trunk/openlayers/lib/OpenLayers/Filter/Function.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Filter/Function.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Filter/Function.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -43,9 +43,6 @@
      * Returns:
      * {<OpenLayers.Filter.Function>}
      */
-    initialize: function(options) {
-        OpenLayers.Filter.prototype.initialize.apply(this, [options]);
-    },
 
     CLASS_NAME: "OpenLayers.Filter.Function"
 });

Modified: trunk/openlayers/lib/OpenLayers/Filter/Spatial.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Filter/Spatial.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Filter/Spatial.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -69,9 +69,6 @@
      * Returns:
      * {<OpenLayers.Filter.Spatial>}
      */
-    initialize: function(options) {
-        OpenLayers.Filter.prototype.initialize.apply(this, [options]);
-    },
 
    /**
     * Method: evaluate

Modified: trunk/openlayers/lib/OpenLayers/Geometry/Curve.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/Curve.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/Curve.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -32,10 +32,6 @@
      * Parameters:
      * point - {Array(<OpenLayers.Geometry.Point>)}
      */
-    initialize: function(points) {
-        OpenLayers.Geometry.MultiPoint.prototype.initialize.apply(this, 
-                                                                  arguments);
-    },
     
     /**
      * APIMethod: getLength

Modified: trunk/openlayers/lib/OpenLayers/Geometry/LineString.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/LineString.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/LineString.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -26,9 +26,6 @@
      *          generate the linestring
      *
      */
-    initialize: function(points) {
-        OpenLayers.Geometry.Curve.prototype.initialize.apply(this, arguments);        
-    },
 
     /**
      * APIMethod: removeComponent

Modified: trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -42,10 +42,6 @@
      * Parameters:
      * points - {Array(<OpenLayers.Geometry.Point>)} points
      */
-    initialize: function(points) {
-        OpenLayers.Geometry.LineString.prototype.initialize.apply(this, 
-                                                                  arguments);
-    },
 
     /**
      * APIMethod: addComponent

Modified: trunk/openlayers/lib/OpenLayers/Geometry/MultiLineString.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/MultiLineString.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/MultiLineString.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -36,10 +36,6 @@
      * components - {Array(<OpenLayers.Geometry.LineString>)} 
      *
      */
-    initialize: function(components) {
-        OpenLayers.Geometry.Collection.prototype.initialize.apply(this, 
-                                                                  arguments);        
-    },
     
     /**
      * Method: split

Modified: trunk/openlayers/lib/OpenLayers/Geometry/MultiPoint.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/MultiPoint.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/MultiPoint.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -38,10 +38,6 @@
      * Returns:
      * {<OpenLayers.Geometry.MultiPoint>}
      */
-    initialize: function(components) {
-        OpenLayers.Geometry.Collection.prototype.initialize.apply(this, 
-                                                                  arguments);
-    },
 
     /**
      * APIMethod: addPoint

Modified: trunk/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -37,10 +37,6 @@
      *              used to generate the MultiPolygon
      *
      */
-    initialize: function(components) {
-        OpenLayers.Geometry.Collection.prototype.initialize.apply(this, 
-                                                                  arguments);
-    },
 
     CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"
 });

Modified: trunk/openlayers/lib/OpenLayers/Geometry/Polygon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/Polygon.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/Polygon.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -37,11 +37,7 @@
      * Parameters:
      * components - {Array(<OpenLayers.Geometry.LinearRing>)} 
      */
-    initialize: function(components) {
-        OpenLayers.Geometry.Collection.prototype.initialize.apply(this, 
-                                                                  arguments);
-    },
-    
+
     /** 
      * APIMethod: getArea
      * Calculated by subtracting the areas of the internal holes from the 

Modified: trunk/openlayers/lib/OpenLayers/Geometry/Surface.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Geometry/Surface.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Geometry/Surface.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -9,9 +9,5 @@
 
 OpenLayers.Geometry.Surface = OpenLayers.Class(OpenLayers.Geometry, {
 
-    initialize: function() {
-        OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
-    },
-
     CLASS_NAME: "OpenLayers.Geometry.Surface"
 });

Modified: trunk/openlayers/lib/OpenLayers/Handler/Click.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Click.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Handler/Click.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -146,9 +146,6 @@
      * options - {Object} Optional object whose properties will be set on the
      *     handler.
      */
-    initialize: function(control, callbacks, options) {
-        OpenLayers.Handler.prototype.initialize.apply(this, arguments);
-    },
     
     /**
      * Method: touchstart

Modified: trunk/openlayers/lib/OpenLayers/Handler/Hover.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Hover.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Handler/Hover.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -69,9 +69,6 @@
      * options - {Object} An optional object whose properties will be set on
      *     the handler.
      */
-    initialize: function(control, callbacks, options) {
-        OpenLayers.Handler.prototype.initialize.apply(this, arguments);
-    },
 
     /**
      * Method: mousemove

Modified: trunk/openlayers/lib/OpenLayers/Handler/Path.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Path.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Handler/Path.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -95,10 +95,7 @@
      * cancel - Called when the handler is deactivated while drawing.  The
      *     cancel callback will receive a geometry.
      */
-    initialize: function(control, callbacks, options) {
-        OpenLayers.Handler.Point.prototype.initialize.apply(this, arguments);
-    },
-        
+
     /**
      * Method: createFeature
      * Add temporary geometries

Modified: trunk/openlayers/lib/OpenLayers/Handler/Pinch.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Pinch.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Handler/Pinch.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -74,9 +74,6 @@
      *     information about scale, distance, and position of touch points.
      * options - {Object}
      */
-    initialize: function(control, callbacks, options) {
-        OpenLayers.Handler.prototype.initialize.apply(this, arguments);
-    },
 
     /**
      * Method: touchstart

Modified: trunk/openlayers/lib/OpenLayers/Handler/Polygon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Polygon.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Handler/Polygon.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -62,9 +62,6 @@
      * cancel - Called when the handler is deactivated while drawing.  The
      *     cancel callback will receive a geometry.
      */
-    initialize: function(control, callbacks, options) {
-        OpenLayers.Handler.Path.prototype.initialize.apply(this, arguments);
-    },
     
     /**
      * Method: createFeature

Modified: trunk/openlayers/lib/OpenLayers/Layer/ArcGIS93Rest.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/ArcGIS93Rest.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Layer/ArcGIS93Rest.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -91,17 +91,7 @@
         }
     },    
 
-    
     /**
-     * Method: destroy
-     * Destroy this layer
-     */
-    destroy: function() {
-        // for now, nothing special to do here. 
-        OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);  
-    },   
-    
-    /**
          * Method: clone
          * Create a clone of this layer
          *

Modified: trunk/openlayers/lib/OpenLayers/Layer/ArcIMS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/ArcIMS.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Layer/ArcIMS.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -149,18 +149,7 @@
         }
     },    
 
-    
     /**
-     * Method: destroy
-     * Destroy this layer
-     */
-    destroy: function() {
-        // for now, nothing special to do here. 
-        OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);  
-    },   
-    
-    
-    /**
      * Method: getURL
      * Return an image url this layer.
      *

Modified: trunk/openlayers/lib/OpenLayers/Layer/TMS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/TMS.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Layer/TMS.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -123,15 +123,6 @@
     },    
 
     /**
-     * APIMethod:destroy
-     */
-    destroy: function() {
-        // for now, nothing special to do here. 
-        OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);  
-    },
-
-    
-    /**
      * APIMethod: clone
      * Create a complete copy of this layer.
      *

Modified: trunk/openlayers/lib/OpenLayers/Layer/Vector/RootContainer.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Vector/RootContainer.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Layer/Vector/RootContainer.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -50,9 +50,6 @@
      * {<OpenLayers.Layer.Vector.RootContainer>} A new vector layer root
      *     container
      */
-    initialize: function(name, options) {
-        OpenLayers.Layer.Vector.prototype.initialize.apply(this, arguments);
-    },
     
     /**
      * Method: display

Modified: trunk/openlayers/lib/OpenLayers/Layer/WMS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/WMS.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Layer/WMS.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -153,16 +153,6 @@
     },    
 
     /**
-     * Method: destroy
-     * Destroy this layer
-     */
-    destroy: function() {
-        // for now, nothing special to do here. 
-        OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);  
-    },
-
-    
-    /**
      * Method: clone
      * Create a clone of this layer
      *

Modified: trunk/openlayers/lib/OpenLayers/Popup/FramedCloud.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Popup/FramedCloud.js	2011-09-17 19:19:49 UTC (rev 12385)
+++ trunk/openlayers/lib/OpenLayers/Popup/FramedCloud.js	2011-09-17 19:20:40 UTC (rev 12386)
@@ -223,12 +223,5 @@
         this.contentDiv.className = this.contentDisplayClass;
     },
 
-    /** 
-     * APIMethod: destroy
-     */
-    destroy: function() {
-        OpenLayers.Popup.Framed.prototype.destroy.apply(this, arguments);
-    },
-
     CLASS_NAME: "OpenLayers.Popup.FramedCloud"
 });



More information about the Commits mailing list