From c27af601530db946a85da9722c9d71c251bae827 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 7 Mar 2011 11:20:12 +0000 Subject: [PATCH] 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 --- lib/Rico/Color.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Rico/Color.js b/lib/Rico/Color.js index 12c537c90a..6741e7c014 100644 --- a/lib/Rico/Color.js +++ b/lib/Rico/Color.js @@ -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);