Created
October 5, 2015 00:40
-
-
Save reharik/4900f60b149cf714a1bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| handleEvent on the base calss | |
| console.log(this[gesEvent.eventName]); | |
| console.log(this[gesEvent.eventName](gesEvent.data, gesEvent.metadata.continuationId)); | |
| result | |
| [Function: hireTrainer] | |
| [TypeError: undefined is not a function] | |
| ths[gesEvent.eventName] is on the child class | |
| in calling calss I loop through a collection of classes that all inherit from baseclass | |
| .forEach(m=> { | |
| m.handleEvent(vent); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment