[OpenLayers-Commits] r11610 -
trunk/openlayers/lib/OpenLayers/Control
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Mar 2 08:23:19 EST 2011
Author: fredj
Date: 2011-03-02 05:23:17 -0800 (Wed, 02 Mar 2011)
New Revision: 11610
Modified:
trunk/openlayers/lib/OpenLayers/Control/ArgParser.js
trunk/openlayers/lib/OpenLayers/Control/Attribution.js
trunk/openlayers/lib/OpenLayers/Control/KeyboardDefaults.js
trunk/openlayers/lib/OpenLayers/Control/MousePosition.js
trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
trunk/openlayers/lib/OpenLayers/Control/ScaleLine.js
Log:
remove 'empty' initialize method (method that only call the parent class). r=bartvde (closes #3146)
Modified: trunk/openlayers/lib/OpenLayers/Control/ArgParser.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/ArgParser.js 2011-03-02 11:30:38 UTC (rev 11609)
+++ trunk/openlayers/lib/OpenLayers/Control/ArgParser.js 2011-03-02 13:23:17 UTC (rev 11610)
@@ -54,16 +54,6 @@
*/
displayProjection: null,
- /**
- * Constructor: OpenLayers.Control.ArgParser
- *
- * Parameters:
- * options - {Object}
- */
- initialize: function(options) {
- OpenLayers.Control.prototype.initialize.apply(this, arguments);
- },
-
getParameters: function(url) {
url = url || window.location.href;
var parameters = OpenLayers.Util.getParameters(url);
Modified: trunk/openlayers/lib/OpenLayers/Control/Attribution.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/Attribution.js 2011-03-02 11:30:38 UTC (rev 11609)
+++ trunk/openlayers/lib/OpenLayers/Control/Attribution.js 2011-03-02 13:23:17 UTC (rev 11610)
@@ -24,16 +24,6 @@
*/
separator: ", ",
- /**
- * Constructor: OpenLayers.Control.Attribution
- *
- * Parameters:
- * options - {Object} Options for control.
- */
- initialize: function(options) {
- OpenLayers.Control.prototype.initialize.apply(this, arguments);
- },
-
/**
* Method: destroy
* Destroy control.
Modified: trunk/openlayers/lib/OpenLayers/Control/KeyboardDefaults.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/KeyboardDefaults.js 2011-03-02 11:30:38 UTC (rev 11609)
+++ trunk/openlayers/lib/OpenLayers/Control/KeyboardDefaults.js 2011-03-02 13:23:17 UTC (rev 11610)
@@ -33,13 +33,6 @@
* Pixels to slide by.
*/
slideFactor: 75,
-
- /**
- * Constructor: OpenLayers.Control.KeyboardDefaults
- */
- initialize: function() {
- OpenLayers.Control.prototype.initialize.apply(this, arguments);
- },
/**
* APIMethod: destroy
Modified: trunk/openlayers/lib/OpenLayers/Control/MousePosition.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/MousePosition.js 2011-03-02 11:30:38 UTC (rev 11609)
+++ trunk/openlayers/lib/OpenLayers/Control/MousePosition.js 2011-03-02 13:23:17 UTC (rev 11610)
@@ -82,16 +82,6 @@
displayProjection: null,
/**
- * Constructor: OpenLayers.Control.MousePosition
- *
- * Parameters:
- * options - {Object} Options for control.
- */
- initialize: function(options) {
- OpenLayers.Control.prototype.initialize.apply(this, arguments);
- },
-
- /**
* Method: destroy
*/
destroy: function() {
Modified: trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js 2011-03-02 11:30:38 UTC (rev 11609)
+++ trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js 2011-03-02 13:23:17 UTC (rev 11610)
@@ -85,13 +85,6 @@
zoomStart: null,
/**
- * Constructor: OpenLayers.Control.PanZoomBar
- */
- initialize: function() {
- OpenLayers.Control.PanZoom.prototype.initialize.apply(this, arguments);
- },
-
- /**
* APIMethod: destroy
*/
destroy: function() {
Modified: trunk/openlayers/lib/OpenLayers/Control/ScaleLine.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/ScaleLine.js 2011-03-02 11:30:38 UTC (rev 11609)
+++ trunk/openlayers/lib/OpenLayers/Control/ScaleLine.js 2011-03-02 13:23:17 UTC (rev 11610)
@@ -73,18 +73,6 @@
geodesic: false,
/**
- * Constructor: OpenLayers.Control.ScaleLine
- * Create a new scale line control.
- *
- * Parameters:
- * options - {Object} An optional object whose properties will be used
- * to extend the control.
- */
- initialize: function(options) {
- OpenLayers.Control.prototype.initialize.apply(this, [options]);
- },
-
- /**
* Method: draw
*
* Returns:
More information about the Commits
mailing list