I use the jQuery extend function to extend a class prototype.
For example:
MyWidget = function(name_var) { this.init(name_var); } $.extend(MyWidge
jQuery doesn't offer that. But Prototype does, via Class.create.