[Prototype-core] Hash no longer works with templates/interpolate()

2007-10-17 Thread G Jones
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

[Prototype-core] Re: Superclass constructor

2007-09-20 Thread G Jones
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

[Prototype-core] Re: Integration of something like ben nolan's behaviour?

2007-05-04 Thread G Jones
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);