fkrauthan
10/16/2018, 2:13 AMgbaldeck
10/16/2018, 2:14 AMfkrauthan
10/16/2018, 2:15 AMgbaldeck
10/16/2018, 2:18 AMfkrauthan
10/16/2018, 2:29 AMconst myClassInstance = new MyClass(baseClassInstance);
and the constructor of MyClass
would store the reference to the base instance and pass through all methods that baseclass has to the my class instance. The nice thing about JS in this case is it can be a simple array of properties that you want to pass through. E.g. this.myMethod = baseInstance.myMethod;
gbaldeck
10/16/2018, 2:32 AMgbaldeck
10/16/2018, 2:33 AMfkrauthan
10/16/2018, 2:34 AM