P
petermichaux
Hi,
I've been using the prototype.js library[1] to create classes.
Something like
var Sortable = Class.create();
Sortable.prototype = {
initialize: function(element) {
//...
},
// more methods...
}
All of my methods are instance methods. What is the tidiest way to
create class methods and variables?
Thanks,
Peter
[1] - http://prototype.conio.net/
I've been using the prototype.js library[1] to create classes.
Something like
var Sortable = Class.create();
Sortable.prototype = {
initialize: function(element) {
//...
},
// more methods...
}
All of my methods are instance methods. What is the tidiest way to
create class methods and variables?
Thanks,
Peter
[1] - http://prototype.conio.net/