[OpenLayers-Dev] occasional alpha hack error with FF 3

Zac Spitzer zac.spitzer at gmail.com
Mon Jan 12 09:03:56 EST 2009


FF forgot my trac password grrr, i filed it as openlayers with a patch

http://trac.openlayers.org/ticket/1899

z

On Tue, Jan 13, 2009 at 12:42 AM, Frédéric Junod
<frederic.junod at camptocamp.com> wrote:
> Zac,
>
> I use FF 3.0.5 and the firefox nightly build on firefox and never got this
> error ...
>
> Anyway, you're right about the array length test, could you open a ticket ?
> See http://trac.openlayers.org/wiki/FilingTickets
>
> fredj
>
> Le Tue, 13 Jan 2009 00:20:20 +1100,
> "Zac Spitzer" <zac.spitzer at gmail.com> a écrit :
>
>> this code for detecting IE is throwing warnings in firebug
>>
>> OpenLayers.Util.alphaHack = function() {
>>     if (OpenLayers.Util.alphaHackNeeded == null) {
>>         var arVersion = navigator.appVersion.split("MSIE");
>>         var version = parseFloat(arVersion[1]);
>>
>> Unexpected value undefined parsing r attribute.
>> [Break on this error] undefined
>> Util.js (line 414)
>>
>> (my line numbers are a bit out as i have the $ stuff commented out as
>> I found IE gets
>> confused with jquery)
>>
>> shouldn't there be a be a check to see if the array has two elements
>> before checking it?
>>
>> logically
>>
>> var arVersion = navigator.appVersion.split("MSIE");
>> if(arVersion.length === 1)
>>  OpenLayers.Util.alphaHackNeeded= false;
>>
>
>
> --
> Frédéric Junod
> Camptocamp SA
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168



More information about the Dev mailing list