From 0d2b12c7cd0d8e478743d38cc5849ddca2d87e10 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 12 Apr 2007 15:12:44 +0000 Subject: [PATCH] #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 --- lib/OpenLayers/Control/DrawFeature.js | 2 +- lib/OpenLayers/Control/OverviewMap.js | 5 +++-- lib/OpenLayers/Control/SelectFeature.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Control/DrawFeature.js b/lib/OpenLayers/Control/DrawFeature.js index 956db4c013..da4b8dfb26 100644 --- a/lib/OpenLayers/Control/DrawFeature.js +++ b/lib/OpenLayers/Control/DrawFeature.js @@ -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 diff --git a/lib/OpenLayers/Control/OverviewMap.js b/lib/OpenLayers/Control/OverviewMap.js index 086efa0c68..cb5301125b 100644 --- a/lib/OpenLayers/Control/OverviewMap.js +++ b/lib/OpenLayers/Control/OverviewMap.js @@ -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]); }, diff --git a/lib/OpenLayers/Control/SelectFeature.js b/lib/OpenLayers/Control/SelectFeature.js index ebda28f0f0..4aa31cd717 100644 --- a/lib/OpenLayers/Control/SelectFeature.js +++ b/lib/OpenLayers/Control/SelectFeature.js @@ -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