diff --git a/lib/OpenLayers/Filter/Function.js b/lib/OpenLayers/Filter/Function.js index 34cbc7c173..ca3469eb2c 100644 --- a/lib/OpenLayers/Filter/Function.js +++ b/lib/OpenLayers/Filter/Function.js @@ -43,9 +43,6 @@ OpenLayers.Filter.Function = OpenLayers.Class(OpenLayers.Filter, { * Returns: * {} */ - initialize: function(options) { - OpenLayers.Filter.prototype.initialize.apply(this, [options]); - }, CLASS_NAME: "OpenLayers.Filter.Function" }); diff --git a/lib/OpenLayers/Filter/Spatial.js b/lib/OpenLayers/Filter/Spatial.js index 745ce85a3d..5e94ebb4f9 100644 --- a/lib/OpenLayers/Filter/Spatial.js +++ b/lib/OpenLayers/Filter/Spatial.js @@ -69,9 +69,6 @@ OpenLayers.Filter.Spatial = OpenLayers.Class(OpenLayers.Filter, { * Returns: * {} */ - initialize: function(options) { - OpenLayers.Filter.prototype.initialize.apply(this, [options]); - }, /** * Method: evaluate diff --git a/lib/OpenLayers/Geometry/Curve.js b/lib/OpenLayers/Geometry/Curve.js index 01ef2ec589..fa9e69cfc2 100644 --- a/lib/OpenLayers/Geometry/Curve.js +++ b/lib/OpenLayers/Geometry/Curve.js @@ -32,10 +32,6 @@ OpenLayers.Geometry.Curve = OpenLayers.Class(OpenLayers.Geometry.MultiPoint, { * Parameters: * point - {Array()} */ - initialize: function(points) { - OpenLayers.Geometry.MultiPoint.prototype.initialize.apply(this, - arguments); - }, /** * APIMethod: getLength diff --git a/lib/OpenLayers/Geometry/LineString.js b/lib/OpenLayers/Geometry/LineString.js index dc16f25020..b886742fcb 100644 --- a/lib/OpenLayers/Geometry/LineString.js +++ b/lib/OpenLayers/Geometry/LineString.js @@ -26,9 +26,6 @@ OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, { * generate the linestring * */ - initialize: function(points) { - OpenLayers.Geometry.Curve.prototype.initialize.apply(this, arguments); - }, /** * APIMethod: removeComponent diff --git a/lib/OpenLayers/Geometry/LinearRing.js b/lib/OpenLayers/Geometry/LinearRing.js index dd19c92696..370bb5519b 100644 --- a/lib/OpenLayers/Geometry/LinearRing.js +++ b/lib/OpenLayers/Geometry/LinearRing.js @@ -42,10 +42,6 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class( * Parameters: * points - {Array()} points */ - initialize: function(points) { - OpenLayers.Geometry.LineString.prototype.initialize.apply(this, - arguments); - }, /** * APIMethod: addComponent diff --git a/lib/OpenLayers/Geometry/MultiLineString.js b/lib/OpenLayers/Geometry/MultiLineString.js index f0e013c436..f7a8715daf 100644 --- a/lib/OpenLayers/Geometry/MultiLineString.js +++ b/lib/OpenLayers/Geometry/MultiLineString.js @@ -36,10 +36,6 @@ OpenLayers.Geometry.MultiLineString = OpenLayers.Class( * components - {Array()} * */ - initialize: function(components) { - OpenLayers.Geometry.Collection.prototype.initialize.apply(this, - arguments); - }, /** * Method: split diff --git a/lib/OpenLayers/Geometry/MultiPoint.js b/lib/OpenLayers/Geometry/MultiPoint.js index 9b5c112568..2ded83eba2 100644 --- a/lib/OpenLayers/Geometry/MultiPoint.js +++ b/lib/OpenLayers/Geometry/MultiPoint.js @@ -38,10 +38,6 @@ OpenLayers.Geometry.MultiPoint = OpenLayers.Class( * Returns: * {} */ - initialize: function(components) { - OpenLayers.Geometry.Collection.prototype.initialize.apply(this, - arguments); - }, /** * APIMethod: addPoint diff --git a/lib/OpenLayers/Geometry/MultiPolygon.js b/lib/OpenLayers/Geometry/MultiPolygon.js index 534172f240..5e7c72140c 100644 --- a/lib/OpenLayers/Geometry/MultiPolygon.js +++ b/lib/OpenLayers/Geometry/MultiPolygon.js @@ -37,10 +37,6 @@ OpenLayers.Geometry.MultiPolygon = OpenLayers.Class( * used to generate the MultiPolygon * */ - initialize: function(components) { - OpenLayers.Geometry.Collection.prototype.initialize.apply(this, - arguments); - }, CLASS_NAME: "OpenLayers.Geometry.MultiPolygon" }); diff --git a/lib/OpenLayers/Geometry/Polygon.js b/lib/OpenLayers/Geometry/Polygon.js index 467fb9f69e..0d17d28fff 100644 --- a/lib/OpenLayers/Geometry/Polygon.js +++ b/lib/OpenLayers/Geometry/Polygon.js @@ -37,11 +37,7 @@ OpenLayers.Geometry.Polygon = OpenLayers.Class( * Parameters: * components - {Array()} */ - initialize: function(components) { - OpenLayers.Geometry.Collection.prototype.initialize.apply(this, - arguments); - }, - + /** * APIMethod: getArea * Calculated by subtracting the areas of the internal holes from the diff --git a/lib/OpenLayers/Geometry/Surface.js b/lib/OpenLayers/Geometry/Surface.js index 626c00559e..e41bfe57dd 100644 --- a/lib/OpenLayers/Geometry/Surface.js +++ b/lib/OpenLayers/Geometry/Surface.js @@ -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" }); diff --git a/lib/OpenLayers/Handler/Click.js b/lib/OpenLayers/Handler/Click.js index b2a1a043d5..64d46a0e2d 100644 --- a/lib/OpenLayers/Handler/Click.js +++ b/lib/OpenLayers/Handler/Click.js @@ -146,9 +146,6 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, { * 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 diff --git a/lib/OpenLayers/Handler/Hover.js b/lib/OpenLayers/Handler/Hover.js index a508cbd16f..c3afc7aa13 100644 --- a/lib/OpenLayers/Handler/Hover.js +++ b/lib/OpenLayers/Handler/Hover.js @@ -69,9 +69,6 @@ OpenLayers.Handler.Hover = OpenLayers.Class(OpenLayers.Handler, { * 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 diff --git a/lib/OpenLayers/Handler/Path.js b/lib/OpenLayers/Handler/Path.js index 3849a1eaa0..cb5d0cb11f 100644 --- a/lib/OpenLayers/Handler/Path.js +++ b/lib/OpenLayers/Handler/Path.js @@ -95,10 +95,7 @@ OpenLayers.Handler.Path = OpenLayers.Class(OpenLayers.Handler.Point, { * 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 diff --git a/lib/OpenLayers/Handler/Pinch.js b/lib/OpenLayers/Handler/Pinch.js index 2138a458ad..e54d47c679 100644 --- a/lib/OpenLayers/Handler/Pinch.js +++ b/lib/OpenLayers/Handler/Pinch.js @@ -74,9 +74,6 @@ OpenLayers.Handler.Pinch = OpenLayers.Class(OpenLayers.Handler, { * 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 diff --git a/lib/OpenLayers/Handler/Polygon.js b/lib/OpenLayers/Handler/Polygon.js index 399f9afe62..440bcc5686 100644 --- a/lib/OpenLayers/Handler/Polygon.js +++ b/lib/OpenLayers/Handler/Polygon.js @@ -62,9 +62,6 @@ OpenLayers.Handler.Polygon = OpenLayers.Class(OpenLayers.Handler.Path, { * 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 diff --git a/lib/OpenLayers/Layer/ArcGIS93Rest.js b/lib/OpenLayers/Layer/ArcGIS93Rest.js index c0d065df44..dd9fa85cb8 100644 --- a/lib/OpenLayers/Layer/ArcGIS93Rest.js +++ b/lib/OpenLayers/Layer/ArcGIS93Rest.js @@ -91,16 +91,6 @@ OpenLayers.Layer.ArcGIS93Rest = OpenLayers.Class(OpenLayers.Layer.Grid, { } }, - - /** - * 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 diff --git a/lib/OpenLayers/Layer/ArcIMS.js b/lib/OpenLayers/Layer/ArcIMS.js index 4eabeb5b1b..fe1a872386 100644 --- a/lib/OpenLayers/Layer/ArcIMS.js +++ b/lib/OpenLayers/Layer/ArcIMS.js @@ -149,17 +149,6 @@ OpenLayers.Layer.ArcIMS = OpenLayers.Class(OpenLayers.Layer.Grid, { } }, - - /** - * 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. diff --git a/lib/OpenLayers/Layer/TMS.js b/lib/OpenLayers/Layer/TMS.js index 930a80ad12..ff946a9f30 100644 --- a/lib/OpenLayers/Layer/TMS.js +++ b/lib/OpenLayers/Layer/TMS.js @@ -122,15 +122,6 @@ OpenLayers.Layer.TMS = OpenLayers.Class(OpenLayers.Layer.Grid, { OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); }, - /** - * 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. diff --git a/lib/OpenLayers/Layer/Vector/RootContainer.js b/lib/OpenLayers/Layer/Vector/RootContainer.js index bf98fe927e..3ced941384 100644 --- a/lib/OpenLayers/Layer/Vector/RootContainer.js +++ b/lib/OpenLayers/Layer/Vector/RootContainer.js @@ -50,9 +50,6 @@ OpenLayers.Layer.Vector.RootContainer = OpenLayers.Class(OpenLayers.Layer.Vector * {} A new vector layer root * container */ - initialize: function(name, options) { - OpenLayers.Layer.Vector.prototype.initialize.apply(this, arguments); - }, /** * Method: display diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 60bf8cc1c9..5e1eaf0290 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -152,16 +152,6 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, { }, - /** - * 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 diff --git a/lib/OpenLayers/Popup/FramedCloud.js b/lib/OpenLayers/Popup/FramedCloud.js index 6dec3877cb..4605c34358 100644 --- a/lib/OpenLayers/Popup/FramedCloud.js +++ b/lib/OpenLayers/Popup/FramedCloud.js @@ -223,12 +223,5 @@ OpenLayers.Popup.FramedCloud = this.contentDiv.className = this.contentDisplayClass; }, - /** - * APIMethod: destroy - */ - destroy: function() { - OpenLayers.Popup.Framed.prototype.destroy.apply(this, arguments); - }, - CLASS_NAME: "OpenLayers.Popup.FramedCloud" });