<div class="gmail_quote">2010/1/15 Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org" target="_blank">aseigo@kde.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div><br>
</div></div>it is a scoping problem. declaring "var name" means that the 'name' variable<br>
is local to that context (the file in this case).</blockquote><div><br>Well, it's true. That's actually how JS works, so, not using var would be the way to go. I, however, don't see how it would work for functions without assigning them to variables or the plasmoid.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>to me it sounds<br>
like a problem waiting to happen:<br></blockquote><div><br>Yes, it is. It could could completely mess up with any computing you might be doing (it's not really hard to be using the same var names in an included file and inside a function somewhere else) and also, as you exemplified, final results. I suppose it was not well thought at the time of that writing. Maybe that should get fixed instead of this (so, please don't patch it).<br>
<br>That's what I suggest.<br><br>Cheers,<br clear="all">--<br>J (|´:¬{)»<br>---------------------------------------------<br>"Eu
sou a ressurreição e a vida. Quem crê em mim, ainda que morra, viverá;
e todo o que vive e crê em mim não morrerá, eternamente. Crês isto?"<br>O Senhor, Jesus Cristo - Jo.11:25-26<br>---------------------------------------------<br>
</div></div>