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
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
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
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
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