[OpenLayers-Commits] r7076 - sandbox/vector-behavior/lib/OpenLayers

commits at openlayers.org commits at openlayers.org
Wed May 7 02:46:09 EDT 2008


Author: fredj
Date: 2008-05-07 02:46:09 -0400 (Wed, 07 May 2008)
New Revision: 7076

Modified:
   sandbox/vector-behavior/lib/OpenLayers/Protocol.js
Log:
add OpenLayers.Protocol.setFormat function

Modified: sandbox/vector-behavior/lib/OpenLayers/Protocol.js
===================================================================
--- sandbox/vector-behavior/lib/OpenLayers/Protocol.js	2008-05-06 21:51:16 UTC (rev 7075)
+++ sandbox/vector-behavior/lib/OpenLayers/Protocol.js	2008-05-07 06:46:09 UTC (rev 7076)
@@ -26,8 +26,19 @@
     initialize: function(options) {
         OpenLayers.Util.extend(this, options);
     },
-    
+
+
     /**
+     * Method: setFormat
+     *
+     * Parameters:
+     * format - {<OpenLayers.Format>}
+     */
+    setFormat: function(format) {
+        this.format = format;
+    },
+
+    /**
      * APIMethod: destroy
      * Clean up the protocol.
      */



More information about the Commits mailing list