update all base types to deal with any kind of input. a continuation of r1412 and a resolution for #245.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-09-07 18:18:06 +00:00
parent 00e354511e
commit 9b355b76dc
5 changed files with 43 additions and 11 deletions

View File

@@ -31,8 +31,8 @@ OpenLayers.Pixel.prototype = {
* @param {float} y
*/
initialize: function(x, y) {
this.x = x;
this.y = y;
this.x = parseFloat(x);
this.y = parseFloat(y);
},
/**
@@ -123,8 +123,8 @@ OpenLayers.Size.prototype = {
* @param {float} h
*/
initialize: function(w, h) {
this.w = w;
this.h = h;
this.w = parseFloat(w);
this.h = parseFloat(h);
},
/**
@@ -315,10 +315,10 @@ OpenLayers.Bounds.prototype = {
*
*/
initialize: function(left, bottom, right, top) {
this.left = left;
this.bottom = bottom;
this.right = right;
this.top = top;
this.left = parseFloat(left);
this.bottom = parseFloat(bottom);
this.right = parseFloat(right);
this.top = parseFloat(top);
},
/**