Hi Carsten, I think this would be the easiest way of accessing the node variable in scripts, it would work across all scripting languages and if we call the variable "currentNode" we would benefit from
1) being drop-in compatible with JST code used in µjax
2) not colliding with people using node as a variable name inside loops

If I remember correctly, Michael might have a patch for this.

regards,

Lars



Now, coming back to the issue which started this, I can only repeat what I said several weeks (or is it months?) ago: why not adding a "node" variable to the available variables of the script?

Then you can simply do a:

if ( node != null ) {
  node.getNodes();
  // do whatever you want with your node
} else {
  // well, what do you want to do here?
}

Carsten

--
Carsten Ziegeler
[EMAIL PROTECTED]

--
Lars Trieloff
[EMAIL PROTECTED]
http://weblogs.goshaky.com/weblogs/lars

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to