in jQuery:
var MyClass = function( x, y ) {
this.x = x;
this.y = y;
};
$.extend(MyClass.prototype, {
foo: function(z) { ... },
bar: function() { ... }
});
than you could:
var myObject = new MyClass(1, 2);
HJS:
var MyClass = $.Class.create({
initialize: function(x, y) {
this.x = x;
this.y = y;
}.
foo: function(z) { ... },
bar: function() { ... }
});