[OpenLayers-Commits] r10967 - in trunk/openlayers/lib/OpenLayers: . BaseTypes Control Filter Format Layer Protocol

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Dec 15 04:42:19 EST 2010


Author: ahocevar
Date: 2010-12-15 01:42:19 -0800 (Wed, 15 Dec 2010)
New Revision: 10967

Modified:
   trunk/openlayers/lib/OpenLayers/Ajax.js
   trunk/openlayers/lib/OpenLayers/BaseTypes.js
   trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js
   trunk/openlayers/lib/OpenLayers/BaseTypes/LonLat.js
   trunk/openlayers/lib/OpenLayers/BaseTypes/Pixel.js
   trunk/openlayers/lib/OpenLayers/Control/Graticule.js
   trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
   trunk/openlayers/lib/OpenLayers/Control/Permalink.js
   trunk/openlayers/lib/OpenLayers/Control/Scale.js
   trunk/openlayers/lib/OpenLayers/Filter/Spatial.js
   trunk/openlayers/lib/OpenLayers/Format.js
   trunk/openlayers/lib/OpenLayers/Format/GML.js
   trunk/openlayers/lib/OpenLayers/Format/KML.js
   trunk/openlayers/lib/OpenLayers/Format/WFS.js
   trunk/openlayers/lib/OpenLayers/Lang.js
   trunk/openlayers/lib/OpenLayers/Layer/GML.js
   trunk/openlayers/lib/OpenLayers/Layer/Google.js
   trunk/openlayers/lib/OpenLayers/Layer/MultiMap.js
   trunk/openlayers/lib/OpenLayers/Layer/Vector.js
   trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js
   trunk/openlayers/lib/OpenLayers/Layer/WFS.js
   trunk/openlayers/lib/OpenLayers/Layer/Yahoo.js
   trunk/openlayers/lib/OpenLayers/Map.js
   trunk/openlayers/lib/OpenLayers/Protocol/HTTP.js
   trunk/openlayers/lib/OpenLayers/Tile.js
   trunk/openlayers/lib/OpenLayers/Util.js
Log:
Make it possible to exclude Console.js and Lang/en.js for really small builds. r=bartvde (closes #2882)


Modified: trunk/openlayers/lib/OpenLayers/Ajax.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Ajax.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Ajax.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -6,6 +6,7 @@
 /**
  * @requires OpenLayers/Request/XMLHttpRequest.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 OpenLayers.ProxyHost = "";

Modified: trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes/Bounds.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -5,6 +5,7 @@
 
 /**
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/BaseTypes/LonLat.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes/LonLat.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes/LonLat.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -5,6 +5,7 @@
 
 /**
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/BaseTypes/Pixel.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes/Pixel.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes/Pixel.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -5,6 +5,7 @@
 
 /**
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/BaseTypes.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -10,7 +10,7 @@
  * @requires OpenLayers/BaseTypes/Pixel.js
  * @requires OpenLayers/BaseTypes/Bounds.js
  * @requires OpenLayers/BaseTypes/Element.js
- * @requires OpenLayers/Lang/en.js
+ * @requires OpenLayers/Lang.js
  * @requires OpenLayers/Console.js
  */
  

Modified: trunk/openlayers/lib/OpenLayers/Control/Graticule.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/Graticule.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Control/Graticule.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -5,6 +5,7 @@
 
 /**
  * @requires OpenLayers/Control.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -5,6 +5,7 @@
 
 /** 
  * @requires OpenLayers/Control.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Control/Permalink.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/Permalink.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Control/Permalink.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -7,6 +7,7 @@
 /**
  * @requires OpenLayers/Control.js
  * @requires OpenLayers/Control/ArgParser.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Control/Scale.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/Scale.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Control/Scale.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -6,6 +6,7 @@
 
 /**
  * @requires OpenLayers/Control.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Filter/Spatial.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Filter/Spatial.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Filter/Spatial.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -6,6 +6,7 @@
 /**
  * @requires OpenLayers/Filter.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Format/GML.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/GML.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Format/GML.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -13,6 +13,7 @@
  * @requires OpenLayers/Geometry/Polygon.js
  * @requires OpenLayers/Geometry/MultiPolygon.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Format/KML.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/KML.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Format/KML.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -12,6 +12,7 @@
  * @requires OpenLayers/Geometry/Collection.js
  * @requires OpenLayers/Request/XMLHttpRequest.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  * @requires OpenLayers/Projection.js
  */
 

Modified: trunk/openlayers/lib/OpenLayers/Format/WFS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/WFS.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Format/WFS.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -6,6 +6,7 @@
 /**
  * @requires OpenLayers/Format/GML.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Format.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Format.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -6,6 +6,7 @@
 /**
  * @requires OpenLayers/Util.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Lang.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Lang.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Lang.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -101,7 +101,7 @@
      */
     translate: function(key, context) {
         var dictionary = OpenLayers.Lang[OpenLayers.Lang.getCode()];
-        var message = dictionary[key];
+        var message = dictionary && dictionary[key];
         if(!message) {
             // Message not found, fall back to message key
             message = key;

Modified: trunk/openlayers/lib/OpenLayers/Layer/GML.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/GML.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/GML.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -7,6 +7,7 @@
  * @requires OpenLayers/Layer/Vector.js
  * @requires OpenLayers/Request/XMLHttpRequest.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Layer/Google.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Google.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/Google.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -8,6 +8,7 @@
  * @requires OpenLayers/Layer/SphericalMercator.js
  * @requires OpenLayers/Layer/EventPane.js
  * @requires OpenLayers/Layer/FixedZoomLevels.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Layer/MultiMap.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/MultiMap.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/MultiMap.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -6,6 +6,7 @@
 /**
  * @requires OpenLayers/Layer/EventPane.js
  * @requires OpenLayers/Layer/FixedZoomLevels.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Layer/Vector.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Vector.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/Vector.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -9,6 +9,7 @@
  * @requires OpenLayers/StyleMap.js
  * @requires OpenLayers/Feature/Vector.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -8,6 +8,7 @@
  * @requires OpenLayers/Layer/SphericalMercator.js
  * @requires OpenLayers/Layer/EventPane.js
  * @requires OpenLayers/Layer/FixedZoomLevels.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Layer/WFS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/WFS.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/WFS.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -9,6 +9,7 @@
  * @requires OpenLayers/Layer/Vector.js
  * @requires OpenLayers/Layer/Markers.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Layer/Yahoo.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Yahoo.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Layer/Yahoo.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -8,6 +8,7 @@
  * @requires OpenLayers/Layer/SphericalMercator.js
  * @requires OpenLayers/Layer/EventPane.js
  * @requires OpenLayers/Layer/FixedZoomLevels.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Map.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Map.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Map.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -8,6 +8,7 @@
  * @requires OpenLayers/Events.js
  * @requires OpenLayers/Tween.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**

Modified: trunk/openlayers/lib/OpenLayers/Protocol/HTTP.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Protocol/HTTP.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Protocol/HTTP.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -4,6 +4,7 @@
  * full text of the license. */
 
 /**
+ * @requires OpenLayers/Console.js
  * @requires OpenLayers/Protocol.js
  * @requires OpenLayers/Feature/Vector.js
  * @requires OpenLayers/Filter/Spatial.js

Modified: trunk/openlayers/lib/OpenLayers/Tile.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Tile.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Tile.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -7,6 +7,7 @@
 /*
  * @requires OpenLayers/Util.js
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /*

Modified: trunk/openlayers/lib/OpenLayers/Util.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Util.js	2010-12-15 07:52:00 UTC (rev 10966)
+++ trunk/openlayers/lib/OpenLayers/Util.js	2010-12-15 09:42:19 UTC (rev 10967)
@@ -5,6 +5,7 @@
 
 /**
  * @requires OpenLayers/Console.js
+ * @requires OpenLayers/Lang.js
  */
 
 /**



More information about the Commits mailing list