#662 - prototypes shouldn't get properties that might be extended

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-04-12 15:12:44 +00:00
parent 83238e742f
commit 0d2b12c7cd
3 changed files with 5 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ OpenLayers.Control.DrawFeature.prototype =
/**
* @type {Object} The functions that are sent to the handler for callback
*/
callbacks: {},
callbacks: null,
/**
* @type {Function} Called after each feature is added

View File

@@ -46,7 +46,7 @@ OpenLayers.Control.OverviewMap.prototype =
*
* @type Array(OpenLayers.Layer)
*/
layers: [],
layers: null,
/**
* The ratio of the overview map resolution to the main map resolution
@@ -68,13 +68,14 @@ OpenLayers.Control.OverviewMap.prototype =
* options that the main map was constructed with.
* @type: Object
*/
mapOptions: {},
mapOptions: null,
/**
* @constructor
* @param {Object} options Hashtable of options to set on the overview map
*/
initialize: function(options) {
this.layers = new Array();
OpenLayers.Control.prototype.initialize.apply(this, [options]);
},

View File

@@ -45,7 +45,7 @@ OpenLayers.Control.SelectFeature.prototype =
/**
* @type {Object} The functions that are sent to the handler for callback
*/
callbacks: {},
callbacks: null,
/**
* @type {Object} Hash of styles