petermichaux@yahoo.com writes:
[color=blue]
> I've been using the prototype.js library[1] to create classes.[/color]
....[color=blue]
> var Sortable = Class.create();[/color]
....[color=blue]
> All of my methods are instance methods. What is the tidiest way to
> create class methods and variables?[/color]
I don't know the prototype library (for help specific to that, I would
guess that they have a web forum somewhere), but what I would do is
Sortable.classMethod = function classMethod(lala) { /* ... */ };
(I'm not particularly fond of the idea of emulating class based
programming in a prototype based language. It's never going to
be exactly what you expect. Ofcourse it's faster than actually
learning prototype based programming, something I won't claim to
have done myself to the level I would prefer :).
/L
--
Lasse Reichstein Nielsen -
lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'