[OpenLayers-Commits] r2339 - sandbox/vector-2.4/lib/OpenLayers

commits at openlayers.org commits at openlayers.org
Mon Mar 5 14:44:34 EST 2007


Author: euzuro
Date: 2007-03-05 14:44:29 -0500 (Mon, 05 Mar 2007)
New Revision: 2339

Modified:
   sandbox/vector-2.4/lib/OpenLayers/BaseTypes.js
   sandbox/vector-2.4/lib/OpenLayers/Geometry.js
Log:
change name from extendBounds() to simply extend()

Modified: sandbox/vector-2.4/lib/OpenLayers/BaseTypes.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/BaseTypes.js	2007-03-05 19:39:26 UTC (rev 2338)
+++ sandbox/vector-2.4/lib/OpenLayers/BaseTypes.js	2007-03-05 19:44:29 UTC (rev 2339)
@@ -476,7 +476,7 @@
      * 
      * @param {OpenLayers.Bounds|OpenLayers.LonLat|OpenLayers.Geometry.Point} object
      */
-    extendBounds:function(object) {
+    extend:function(object) {
         var bounds = null;
         switch(object.CLASS_NAME) {
             case "OpenLayers.Geometry.Point":

Modified: sandbox/vector-2.4/lib/OpenLayers/Geometry.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Geometry.js	2007-03-05 19:39:26 UTC (rev 2338)
+++ sandbox/vector-2.4/lib/OpenLayers/Geometry.js	2007-03-05 19:44:29 UTC (rev 2339)
@@ -56,7 +56,7 @@
         if (!this.bounds) {
             this.setBounds(bounds);
         } else {
-            this.bounds.extendBounds(bounds);
+            this.bounds.extend(bounds);
         }
     },
     



More information about the Commits mailing list