Jonathan, I'm running this test (out of Jmol.js):

var appletCount = 1;
function test(a,b,nameSuffix) {
 nameSuffix == undefined && (nameSuffix = appletCount);
 alert(nameSuffix);
}
var x = 0;
test(0,0,x); // returns zero
x = "0";
test(0,0,x); // returns zero

So how are you setting the "n" variable?


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to