After some research I've never found any "tutorial" about extending function in js. This is not like
var old = some_func;
some_func = function(){ old(); do_some_stuff(); };
but like (I'm gonna show this in java):
class Point{
protected int x = 0;
protected int y = 1;
}
class MagicPoint extends Point{
protected int color = 2;
}
In this code class is my function. I want to achive something like
function Object1(){
this.a = 0;
}
function Object2(){
this.b = 1;
}
var Object3 = extend(Object1,Object2);
var abc = new Object3();
abc:
a = 0;
b = 1;