[OpenLayers-Commits] r11646 - trunk/openlayers/lib/Rico

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Mar 7 06:20:14 EST 2011


Author: crschmidt
Date: 2011-03-07 03:20:12 -0800 (Mon, 07 Mar 2011)
New Revision: 11646

Modified:
   trunk/openlayers/lib/Rico/Color.js
Log:
Fix a bug in Rico Color introduced by our original porting by switching to
use our internal OpenLayers function instead of an external function; found
by jorix in his closure work. r=bartvde, (Closes #2976)


Modified: trunk/openlayers/lib/Rico/Color.js
===================================================================
--- trunk/openlayers/lib/Rico/Color.js	2011-03-07 11:18:45 UTC (rev 11645)
+++ trunk/openlayers/lib/Rico/Color.js	2011-03-07 11:20:12 UTC (rev 11646)
@@ -1,5 +1,6 @@
 /** 
  * @requires OpenLayers/BaseTypes/Class.js
+ * @requires OpenLayers/BaseTypes/Element.js
  */
 
 
@@ -124,9 +125,8 @@
 OpenLayers.Rico.Color.createColorFromBackground = function(elem) {
 
    var actualColor = 
-      RicoUtil.getElementsComputedStyle(OpenLayers.Util.getElement(elem), 
-                                        "backgroundColor", 
-                                        "background-color");
+      OpenLayers.Element.getStyle(OpenLayers.Util.getElement(elem), 
+                                        "backgroundColor");
 
    if ( actualColor == "transparent" && elem.parentNode ) {
       return OpenLayers.Rico.Color.createColorFromBackground(elem.parentNode);



More information about the Commits mailing list