In my humble opinion the smallest classical OOP pattern is as follows: function defclass(prototype) { var constructor = prototype.constructor; constructor.prototype = prototype; return constructor; } You may then use it…
In my humble opinion the smallest classical OOP pattern is as follows: function defclass(prototype) { var constructor = prototype.constructor; constructor.prototype = prototype; return constructor; } You may then use it…