I am trying to use RMP for most of my modules styles. However, I want to understand it completely with few questions below.
Object.create() seems working for RMP module inheritance. Am I missing something?
var Obj = (function(){ //do some constructor stuff })(); var InheritingObj = (function(){ //do some constructor stuff })(); InheritingObj.prototype = Object.create(Obj.prototype);
Define prototype and return to Obj works too Do I understand something wrong? It seems like prototype inheritance is working for RMP.