Yep - I think so. Look at around line 80 of prototype.js
function klass() {
return this.initialize.apply(this, arguments);
}
The return is something I've been using since May 2008 with all the
releases and updates since then.
I've not had any issues with my code or with scripty with it.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
I build my own prototype. I have a patch which is applied to after the
compiled from source.
So, any class I create, I can return something from the initializer.
I'm trying to find the original request for this feature, but I can't.
It makes my classes work like a Factory if the initializer returns
something other than this.
Simply adding "return" to the call to the this.initialize.appy(this,
arguments); should be enough.
Having to do this for each release is a bit of a pain, and I can't see
why this isn't supported as standard.
I don't use github. I simply build prototype and then add my patch.
I don't have any unit tests for this either, but my users are using it
all day every day (24 hour call centre) for several years.