No subject
Tue Nov 13 08:16:38 EST 2012
Geoffrey Myers<br>
<br>
</div><div class=3D"HOEnZb"><div class=3D"h5">On Apr 30, 2013, at 7:09 PM, =
Alex Carver <<a href=3D"mailto:agcarver%2Bale at acarver.net">agcarver+ale@=
acarver.net</a>> wrote:<br>
<br>
> On 4/30/2013 15:58, Jim Lynch wrote:<br>
>> On 04/30/2013 03:26 PM, Geoffrey Myers wrote:<br>
>>> InvertView('o', LinkDiv)<br>
>>><br>
>>> Will fail.<br>
>>><br>
>>> InvertView() loops through the arg list doing this:<br>
>>><br>
>>> arguments[i+1].style.display =3D<br>
>>> (Arguments[i] =3D=3D 'o') ? "block" : "=
none"<br>
>>><br>
>>> Fails with: Arguments[i+1].style is undefined.<br>
>> Maybe test?<br>
>><br>
>> if(arguments[i+1].style !=3D undefined) {<br>
>> =A0 =A0 arguments[i+1].style.display =3D<br>
>> =A0 =A0 Arguments[i] =3D=3D 'o') ? "block" : &qu=
ot;none"<br>
>> }<br>
><br>
> if ( arguments[i+1] !=3D null && argments[i+1].style !=3D unde=
fined)<br>
> {<br>
> ...<br>
> }<br>
><br>
> Short circuit conditional just to be sure the object exists first befo=
re attempting to test a property.<br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href=3D"mailto:Ale at ale.org">Ale at ale.org</a><br>
> <a href=3D"http://mail.ale.org/mailman/listinfo/ale" target=3D"_blank"=
>http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href=3D"http://mail.ale.org/mailman/listinfo" target=3D"_blank">htt=
p://mail.ale.org/mailman/listinfo</a><br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href=3D"mailto:Ale at ale.org">Ale at ale.org</a><br>
<a href=3D"http://mail.ale.org/mailman/listinfo/ale" target=3D"_blank">http=
://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href=3D"http://mail.ale.org/mailman/listinfo" target=3D"_blank">http://m=
ail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
.!# RichardBronosky #!.
</div></div>
--047d7b4142f815985d04dbaaf57d--
More information about the Ale
mailing list