function extend(Child, Parent){
var F = function() { }
F.prototype = Parent.prototype
Child.prototype = new F()
Child.prototype.constructor = Child
Child.superclass = Parent.prototype
}
I have a problem, when extending the parent class the children prototype functions are being deleted, how to save the children functions and extend the parent using this function?