Created
July 3, 2015 19:51
-
-
Save reharik/fd01eb2ff45adfacc391 to your computer and use it in GitHub Desktop.
example of class wrapped in dependency wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(TestClassBase, pointlessDependency, logger) { | |
return class TestClass extends TestClassBase { | |
constructor(someOtherProp) { | |
super(); | |
this._someOtherProp = someOtherProp; | |
//do something here | |
} | |
setSomeOtherProp(val) { | |
this._someOtherProp = val; | |
} | |
getSomeOtherPropVal(){ | |
return this._someOtherProp; | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment