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 &lt;<a href=3D"mailto:agcarver%2Bale at acarver.net">agcarver+ale@=
acarver.net</a>&gt; wrote:<br>
<br>
&gt; On 4/30/2013 15:58, Jim Lynch wrote:<br>
&gt;&gt; On 04/30/2013 03:26 PM, Geoffrey Myers wrote:<br>
&gt;&gt;&gt; InvertView(&#39;o&#39;, LinkDiv)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Will fail.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; InvertView() loops through the arg list doing this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; arguments[i+1].style.display =3D<br>
&gt;&gt;&gt; (Arguments[i] =3D=3D &#39;o&#39;) ? &quot;block&quot; : &quot;=
none&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Fails with: Arguments[i+1].style is undefined.<br>
&gt;&gt; Maybe test?<br>
&gt;&gt;<br>
&gt;&gt; if(arguments[i+1].style !=3D undefined) {<br>
&gt;&gt; =A0 =A0 arguments[i+1].style.display =3D<br>
&gt;&gt; =A0 =A0 Arguments[i] =3D=3D &#39;o&#39;) ? &quot;block&quot; : &qu=
ot;none&quot;<br>
&gt;&gt; }<br>
&gt;<br>
&gt; if ( arguments[i+1] !=3D null &amp;&amp; argments[i+1].style !=3D unde=
fined)<br>
&gt; {<br>
&gt; ...<br>
&gt; }<br>
&gt;<br>
&gt; Short circuit conditional just to be sure the object exists first befo=
re attempting to test a property.<br>
&gt; _______________________________________________<br>
&gt; Ale mailing list<br>
&gt; <a href=3D"mailto:Ale at ale.org">Ale at ale.org</a><br>
&gt; <a href=3D"http://mail.ale.org/mailman/listinfo/ale" target=3D"_blank"=
>http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt; <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