Skip to content

Instantly share code, notes, and snippets.

@max-winderbaum
Created October 20, 2016 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max-winderbaum/fb6d39f37a69d8746821463a77f646ae to your computer and use it in GitHub Desktop.
Save max-winderbaum/fb6d39f37a69d8746821463a77f646ae to your computer and use it in GitHub Desktop.
const handlers = new Map({
handlePhraseMouseEnter(phrase) {
hoverState.handleMouseEnter(phrase);
phraseConfig.handleMouseEnter(phrase);
},
handlePhraseMouseLeave(phrase) {
hoverState.handleMouseLeave(phrase);
phraseConfig.handleMouseLeave(phrase);
},
handlePhraseClick: phraseConfig.handlePhraseClick,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment