[OpenLayers-Commits] r12134 - trunk/openlayers/lib/OpenLayers/BaseTypes

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Jun 30 01:18:01 EDT 2011


Author: tschaub
Date: 2011-06-29 22:18:00 -0700 (Wed, 29 Jun 2011)
New Revision: 12134

Modified:
   trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js
   trunk/openlayers/lib/OpenLayers/BaseTypes/Class.js
Log:
Syntax highlighting with (code)blocks(end).

Modified: trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js	2011-06-30 05:15:02 UTC (rev 12133)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js	2011-06-30 05:18:00 UTC (rev 12134)
@@ -16,10 +16,12 @@
  * you should make sure you set them before using the bounds for anything.
  * 
  * Possible use case:
- * > bounds = new OpenLayers.Bounds();
- * > bounds.extend(new OpenLayers.LonLat(4,5));
- * > bounds.extend(new OpenLayers.LonLat(5,6));
- * > bounds.toBBOX(); // returns 4,5,5,6
+ * (code)
+ *     bounds = new OpenLayers.Bounds();
+ *     bounds.extend(new OpenLayers.LonLat(4,5));
+ *     bounds.extend(new OpenLayers.LonLat(5,6));
+ *     bounds.toBBOX(); // returns 4,5,5,6
+ * (end)
  */
 OpenLayers.Bounds = OpenLayers.Class({
 

Modified: trunk/openlayers/lib/OpenLayers/BaseTypes/Class.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes/Class.js	2011-06-30 05:15:02 UTC (rev 12133)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes/Class.js	2011-06-30 05:18:00 UTC (rev 12134)
@@ -17,13 +17,17 @@
  *     will be removed.
  * 
  * To create a new OpenLayers-style class, use the following syntax:
- * > var MyClass = OpenLayers.Class(prototype);
+ * (code)
+ *     var MyClass = OpenLayers.Class(prototype);
+ * (end)
  *
  * To create a new OpenLayers-style class with multiple inheritance, use the
  *     following syntax:
- * > var MyClass = OpenLayers.Class(Class1, Class2, prototype);
- * Note that instanceof reflection will only reveil Class1 as superclass.
- * Class2 ff are mixins.
+ * (code)
+ *     var MyClass = OpenLayers.Class(Class1, Class2, prototype);
+ * (end)
+ * 
+ * Note that instanceof reflection will only reveal Class1 as superclass.
  *
  */
 OpenLayers.Class = function() {



More information about the Commits mailing list