[OpenLayers-Dev] occasional alpha hack error with FF 3
Frédéric Junod
frederic.junod at camptocamp.com
Mon Jan 12 08:42:43 EST 2009
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
More information about the Dev
mailing list