[Prototype-core] Re: Feature suggestion: getClassName

2008-02-22 Thread GarethAtFlignet
Hi Tobias, By namespaced classes do you mean support for classes named like: com.google.MyTestClass com.yahoo.MyTestClass ? If thats the case then I did add some more fuctionality to support this together with a Prototype.Namespace variable that allows you to set the current namespace so you

[Prototype-core] Re: Feature suggestion: getClassName

2008-02-22 Thread Yanick
On Feb 21, 6:44 am, Tobie Langel [EMAIL PROTECTED] wrote: Hi, That unfortunately doesn't solve the problem for namespaced classes: var Vehicles = {}; Class.create('Vehicle.Cars', {}); Best, Tobie No, but this might (just wrote this draft in 10 minutes... could be optimized/fixed, but

[Prototype-core] Re: Feature suggestion: getClassName

2008-02-22 Thread GarethAtFlignet
Thanks Yanick, will look at your code in a few mins. In the meantime here is some code that I added to provide OO namespace functionality I need for a project we're working on (please bear in mind that my javascript skills have rarely gone beyond the odd piece of DOM manipulation and as such it

[Prototype-core] Re: Feature suggestion: getClassName

2008-02-22 Thread GarethAtFlignet
Personnally, I fail to see the point of a getClassName() function... but it could be useful in some cases. (--to the OP) Keep in mind that the concept of Classes in JS is not as straightforeward as in pure Java (or other OO languages); because of it's loose-type syntax, any anonymous

[Prototype-core] Re: Feature suggestion: getClassName

2008-02-21 Thread Tobie Langel
Hi, That unfortunately doesn't solve the problem for namespaced classes: var Vehicles = {}; Class.create('Vehicle.Cars', {}); Best, Tobie On Feb 21, 12:10 pm, GarethAtFlignet [EMAIL PROTECTED] wrote: As prototype provides a convenient OO approach to javascript coding through its object