It may never have been intended to use this way, but I've found it
quite useful in the past to be able to use hashes as the source for
template variables. With the new restriction on accessing properties
directly this no longer works.
Looking at the code for Template, it looks like it might be
On Sep 20, 3:35 pm, Les Szklanny [EMAIL PROTECTED] wrote:
Oh boy... what happened to the principle of least surprise? :)
People will be surprised by different things. I'd be surprised if it
were called by default (PHP doesn't do that...)- how would stopping it
work?
Greg
It would be quite useful to have the node that is passed to the
'rules' function be already extended (passed through $()).
I'm currently using a very similar bit of code:
var Behaviour = {
rulesets: [],
add: function(rules) {
Behaviour.rulesets.push(rules);