There javascript class, if he can 'inherit' a few objects - that is, to know their methods
var A = function (a,c){};
var N = {
properties1: function(){};
};
var M1 = {
properties2: function(){};
};
var M2 = {
properties3: function(){};
};
How to do that would 'A' , knew (the heir) of 'N' and 'M1' , 'M2' ...'M10' ... ?
A.prototype = N;
A.prototype = M1;
A.prototype = M2;
It does not work :( How to implement such an event structure in javascript
A.prototyepmultiple times to work. If I have this code:var a = 1; a = 2; a = 3;, then in the end,awill have the value3, not1, 2, 3(somehow).