i’m trying to add the prototype methods of twoClass to the protype methods of oneClass like this:
Function.prototype.extend=function(superclass){
this.prototype.__proto__=superclass.prototype; };
twoClass.myFunc=function() //pseudo ext
twoClass.extend (oneClass);
//twoClass and oneClass are class constuctors
i think i should be able to call a prototype method in twoClass the same way it’s called in oneClass:
myObj=new (oneClass) //pseudo ex
myObj.myFunc(); //calls function inherited from twoClass
unfortunately, it’s not working for me right now–can anybody show me the method for adding one classes’ prototype functions to anothers? mucho obligato…
-mojo