Skip to content

Instantly share code, notes, and snippets.

@reharik
Created October 5, 2015 00:40
Show Gist options
  • Save reharik/4900f60b149cf714a1bb to your computer and use it in GitHub Desktop.
Save reharik/4900f60b149cf714a1bb to your computer and use it in GitHub Desktop.
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