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:
|
* Returns:
|
||||||
* {<OpenLayers.Filter.Function>}
|
* {<OpenLayers.Filter.Function>}
|
||||||
*/
|
*/
|
||||||
initialize: function(options) {
|
|
||||||
OpenLayers.Filter.prototype.initialize.apply(this, [options]);
|
|
||||||
},
|
|
||||||
|
|
||||||
CLASS_NAME: "OpenLayers.Filter.Function"
|
CLASS_NAME: "OpenLayers.Filter.Function"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -69,9 +69,6 @@ OpenLayers.Filter.Spatial = OpenLayers.Class(OpenLayers.Filter, {
|
|||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Filter.Spatial>}
|
* {<OpenLayers.Filter.Spatial>}
|
||||||
*/
|
*/
|
||||||
initialize: function(options) {
|
|
||||||
OpenLayers.Filter.prototype.initialize.apply(this, [options]);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: evaluate
|
* Method: evaluate
|
||||||
|
|||||||
@@ -32,10 +32,6 @@ OpenLayers.Geometry.Curve = OpenLayers.Class(OpenLayers.Geometry.MultiPoint, {
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* point - {Array(<OpenLayers.Geometry.Point>)}
|
* point - {Array(<OpenLayers.Geometry.Point>)}
|
||||||
*/
|
*/
|
||||||
initialize: function(points) {
|
|
||||||
OpenLayers.Geometry.MultiPoint.prototype.initialize.apply(this,
|
|
||||||
arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: getLength
|
* APIMethod: getLength
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, {
|
|||||||
* generate the linestring
|
* generate the linestring
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
initialize: function(points) {
|
|
||||||
OpenLayers.Geometry.Curve.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: removeComponent
|
* APIMethod: removeComponent
|
||||||
|
|||||||
@@ -42,10 +42,6 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class(
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* points - {Array(<OpenLayers.Geometry.Point>)} points
|
* points - {Array(<OpenLayers.Geometry.Point>)} points
|
||||||
*/
|
*/
|
||||||
initialize: function(points) {
|
|
||||||
OpenLayers.Geometry.LineString.prototype.initialize.apply(this,
|
|
||||||
arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: addComponent
|
* APIMethod: addComponent
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ OpenLayers.Geometry.MultiLineString = OpenLayers.Class(
|
|||||||
* components - {Array(<OpenLayers.Geometry.LineString>)}
|
* components - {Array(<OpenLayers.Geometry.LineString>)}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
initialize: function(components) {
|
|
||||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
|
||||||
arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: split
|
* Method: split
|
||||||
|
|||||||
@@ -38,10 +38,6 @@ OpenLayers.Geometry.MultiPoint = OpenLayers.Class(
|
|||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Geometry.MultiPoint>}
|
* {<OpenLayers.Geometry.MultiPoint>}
|
||||||
*/
|
*/
|
||||||
initialize: function(components) {
|
|
||||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
|
||||||
arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: addPoint
|
* APIMethod: addPoint
|
||||||
|
|||||||
@@ -37,10 +37,6 @@ OpenLayers.Geometry.MultiPolygon = OpenLayers.Class(
|
|||||||
* used to generate the MultiPolygon
|
* used to generate the MultiPolygon
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
initialize: function(components) {
|
|
||||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
|
||||||
arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"
|
CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -37,11 +37,7 @@ OpenLayers.Geometry.Polygon = OpenLayers.Class(
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* components - {Array(<OpenLayers.Geometry.LinearRing>)}
|
* components - {Array(<OpenLayers.Geometry.LinearRing>)}
|
||||||
*/
|
*/
|
||||||
initialize: function(components) {
|
|
||||||
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
|
||||||
arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: getArea
|
* APIMethod: getArea
|
||||||
* Calculated by subtracting the areas of the internal holes from the
|
* Calculated by subtracting the areas of the internal holes from the
|
||||||
|
|||||||
@@ -9,9 +9,5 @@
|
|||||||
|
|
||||||
OpenLayers.Geometry.Surface = OpenLayers.Class(OpenLayers.Geometry, {
|
OpenLayers.Geometry.Surface = OpenLayers.Class(OpenLayers.Geometry, {
|
||||||
|
|
||||||
initialize: function() {
|
|
||||||
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
CLASS_NAME: "OpenLayers.Geometry.Surface"
|
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
|
* options - {Object} Optional object whose properties will be set on the
|
||||||
* handler.
|
* handler.
|
||||||
*/
|
*/
|
||||||
initialize: function(control, callbacks, options) {
|
|
||||||
OpenLayers.Handler.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: touchstart
|
* Method: touchstart
|
||||||
|
|||||||
@@ -69,9 +69,6 @@ OpenLayers.Handler.Hover = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
* options - {Object} An optional object whose properties will be set on
|
* options - {Object} An optional object whose properties will be set on
|
||||||
* the handler.
|
* the handler.
|
||||||
*/
|
*/
|
||||||
initialize: function(control, callbacks, options) {
|
|
||||||
OpenLayers.Handler.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: mousemove
|
* 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 - Called when the handler is deactivated while drawing. The
|
||||||
* cancel callback will receive a geometry.
|
* cancel callback will receive a geometry.
|
||||||
*/
|
*/
|
||||||
initialize: function(control, callbacks, options) {
|
|
||||||
OpenLayers.Handler.Point.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: createFeature
|
* Method: createFeature
|
||||||
* Add temporary geometries
|
* Add temporary geometries
|
||||||
|
|||||||
@@ -74,9 +74,6 @@ OpenLayers.Handler.Pinch = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
* information about scale, distance, and position of touch points.
|
* information about scale, distance, and position of touch points.
|
||||||
* options - {Object}
|
* options - {Object}
|
||||||
*/
|
*/
|
||||||
initialize: function(control, callbacks, options) {
|
|
||||||
OpenLayers.Handler.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: touchstart
|
* 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 - Called when the handler is deactivated while drawing. The
|
||||||
* cancel callback will receive a geometry.
|
* cancel callback will receive a geometry.
|
||||||
*/
|
*/
|
||||||
initialize: function(control, callbacks, options) {
|
|
||||||
OpenLayers.Handler.Path.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: createFeature
|
* 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
|
* Method: clone
|
||||||
* Create a clone of this layer
|
* 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
|
* Method: getURL
|
||||||
* Return an image url this layer.
|
* 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);
|
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
|
* APIMethod: clone
|
||||||
* Create a complete copy of this layer.
|
* 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
|
* {<OpenLayers.Layer.Vector.RootContainer>} A new vector layer root
|
||||||
* container
|
* container
|
||||||
*/
|
*/
|
||||||
initialize: function(name, options) {
|
|
||||||
OpenLayers.Layer.Vector.prototype.initialize.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: display
|
* 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
|
* Method: clone
|
||||||
* Create a clone of this layer
|
* Create a clone of this layer
|
||||||
|
|||||||
@@ -223,12 +223,5 @@ OpenLayers.Popup.FramedCloud =
|
|||||||
this.contentDiv.className = this.contentDisplayClass;
|
this.contentDiv.className = this.contentDisplayClass;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* APIMethod: destroy
|
|
||||||
*/
|
|
||||||
destroy: function() {
|
|
||||||
OpenLayers.Popup.Framed.prototype.destroy.apply(this, arguments);
|
|
||||||
},
|
|
||||||
|
|
||||||
CLASS_NAME: "OpenLayers.Popup.FramedCloud"
|
CLASS_NAME: "OpenLayers.Popup.FramedCloud"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user