fix calculation for random ids

git-svn-id: http://svn.openlayers.org/trunk/openlayers@939 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-12 01:53:03 +00:00
parent 68e58ab679
commit 9eb4f1967e

View File

@@ -719,7 +719,7 @@ OpenLayers.Util.createDiv = function(id, px, sz, imgURL, position,
//set generic properties
if (!id) {
id = "OpenLayersDiv" + (Math.random() * 10000 % 10000);
id = "OpenLayersDiv" + Math.round(Math.random() * 10000);
}
if (!position) {
position = "absolute";
@@ -754,7 +754,7 @@ OpenLayers.Util.createImage = function(id, px, sz, imgURL, position, border) {
//set generic properties
if (!id) {
id = "OpenLayersDiv" + (Math.random() * 10000 % 10000);
id = "OpenLayersDiv" + Math.round(Math.random() * 10000);
}
if (!position) {
position = "relative";