remove unneeded destroy and initialize function. r=erilem (closes #3341)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -43,9 +43,6 @@ OpenLayers.Filter.Function = OpenLayers.Class(OpenLayers.Filter, {
|
||||
* Returns:
|
||||
* {<OpenLayers.Filter.Function>}
|
||||
*/
|
||||
initialize: function(options) {
|
||||
OpenLayers.Filter.prototype.initialize.apply(this, [options]);
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Filter.Function"
|
||||
});
|
||||
|
||||
@@ -69,9 +69,6 @@ OpenLayers.Filter.Spatial = OpenLayers.Class(OpenLayers.Filter, {
|
||||
* Returns:
|
||||
* {<OpenLayers.Filter.Spatial>}
|
||||
*/
|
||||
initialize: function(options) {
|
||||
OpenLayers.Filter.prototype.initialize.apply(this, [options]);
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: evaluate
|
||||
|
||||
@@ -32,10 +32,6 @@ OpenLayers.Geometry.Curve = OpenLayers.Class(OpenLayers.Geometry.MultiPoint, {
|
||||
* Parameters:
|
||||
* point - {Array(<OpenLayers.Geometry.Point>)}
|
||||
*/
|
||||
initialize: function(points) {
|
||||
OpenLayers.Geometry.MultiPoint.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: getLength
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -42,10 +42,6 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class(
|
||||
* Parameters:
|
||||
* points - {Array(<OpenLayers.Geometry.Point>)} points
|
||||
*/
|
||||
initialize: function(points) {
|
||||
OpenLayers.Geometry.LineString.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: addComponent
|
||||
|
||||
@@ -36,10 +36,6 @@ OpenLayers.Geometry.MultiLineString = OpenLayers.Class(
|
||||
* components - {Array(<OpenLayers.Geometry.LineString>)}
|
||||
*
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: split
|
||||
|
||||
@@ -38,10 +38,6 @@ OpenLayers.Geometry.MultiPoint = OpenLayers.Class(
|
||||
* Returns:
|
||||
* {<OpenLayers.Geometry.MultiPoint>}
|
||||
*/
|
||||
initialize: function(components) {
|
||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
||||
arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* APIMethod: addPoint
|
||||
|
||||
@@ -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"
|
||||
});
|
||||
|
||||
@@ -37,11 +37,7 @@ OpenLayers.Geometry.Polygon = OpenLayers.Class(
|
||||
* 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
|
||||
|
||||
@@ -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"
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -50,9 +50,6 @@ OpenLayers.Layer.Vector.RootContainer = OpenLayers.Class(OpenLayers.Layer.Vector
|
||||
* {<OpenLayers.Layer.Vector.RootContainer>} A new vector layer root
|
||||
* container
|
||||
*/
|
||||
initialize: function(name, options) {
|
||||
OpenLayers.Layer.Vector.prototype.initialize.apply(this, arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: display
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user