from fredj: "in lib/OpenLayers/Layer.js and lib/OpenLayers/Control.js the div

id is not passed to the createDiv() function." (Closes #1015)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-09-30 16:41:42 +00:00
parent 33f85eeb35
commit 01154beb5d
3 changed files with 8 additions and 7 deletions

View File

@@ -170,8 +170,7 @@ OpenLayers.Control = OpenLayers.Class({
*/
draw: function (px) {
if (this.div == null) {
this.div = OpenLayers.Util.createDiv();
this.div.id = this.id;
this.div = OpenLayers.Util.createDiv(this.id);
this.div.className = this.displayClass;
}
if (px != null) {