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)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2011-03-07 11:20:12 +00:00
parent 324603612d
commit c27af60153

View File

@@ -1,5 +1,6 @@
/**
* @requires OpenLayers/BaseTypes/Class.js
* @requires OpenLayers/BaseTypes/Element.js
*/
@@ -124,9 +125,8 @@ shortHexCode.charAt(i));
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);