Ticket #746: forgiveness.patch
| File forgiveness.patch, 0.9 kB (added by euzuro, 1 year ago) |
|---|
-
lib/OpenLayers/BaseTypes.js
old new 118 118 * @type OpenLayers.Pixel 119 119 */ 120 120 add:function(x, y) { 121 x = x || 0; 122 y = y || 0; 121 123 return new OpenLayers.Pixel(this.x + x, this.y + y); 122 124 }, 123 125 … … 279 281 * @type OpenLayers.LonLat 280 282 */ 281 283 add:function(lon, lat) { 284 lon = lon || 0; 285 lat = lat || 0; 282 286 return new OpenLayers.LonLat(this.lon + lon, this.lat + lat); 283 287 }, 284 288 … … 478 482 * @type OpenLayers.Bounds 479 483 */ 480 484 add:function(x, y) { 485 x = x || 0; 486 y = y || 0; 481 487 return new OpenLayers.Bounds(this.left + x, this.bottom + y, 482 488 this.right + x, this.top + y); 483 489 },
