JQuery provides the jQuery.sub () function for this purpose , and then you can distribute a copy of jQuery by any methods, but [FIXME] you cannot use your own constructor.
You can also use the following hack:
function MyClass(){
if(this.property_that_can_not_be_created_by_jQuery)
return jQuery.apply(this,arguments);
this.property_that_can_not_be_created_by_jQuery = true;
jQuery.fn.init.call(this,'<form>...</form>');
}
inherits(MyClass, jQuery);
, pushStack() , pushStack() (, appendTo() insertAfter()), , jQuery cunstructor, , , , end()