var A = {
method1 : function(){
// do some thing
},
method2 : function(){
// do some thing
}
};
var B = {
method1 : function(){
// overriden
}
};
how to overriden ?
B.extend(B, A);
or
B.merge(A);
What is the right way ?