I vote for Bob as he is making other changes to Jmol.js at the moment.

I'm still a little confused as my tests showed that null worked for  
both an undefined variable and str="".  I only tested in Safari and  
Firefox.  Maybe they're more forgiving.

Jonthan
On Nov 14, 2009, at 12:18 PM, Angel Herráez wrote:

> On 14 Nov 2009 at 10:05, Robert Hanson wrote:
>
> > if (nameSuffix == undefined) is correct. That's what you want.
>
> I thought I had tested that the parameter in a function call is  
> never undefined, but I see now it is not the case. The empty string  
> fails undefined, of course, so we need
>
> if (nameSuffix==undefined || nameSuffix==="")
>
> Right? Who does the change?
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers

                          Dr. Jonathan H. Gutow
Chemistry Department                                 [email protected]
UW-Oshkosh                                           Office:920-424-1326
800 Algoma Boulevard                                 FAX:920-424-2042
Oshkosh, WI 54901
                  http://www.uwosh.edu/facstaff/gutow






------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to