Skip to content

Instantly share code, notes, and snippets.

@worldoptimizer
Created March 12, 2020 22:43
Show Gist options
  • Save worldoptimizer/dd9b59c45cd27e0aaeb2d928603f27e0 to your computer and use it in GitHub Desktop.
Save worldoptimizer/dd9b59c45cd27e0aaeb2d928603f27e0 to your computer and use it in GitHub Desktop.
Stripped down callback
function symbolInitTest (hypeDocument, element, event){
console.log('HypeSymbolInit');
var symbolInstance = hypeDocument.getSymbolInstanceForElement(element);
// do your stuff…
}
window.HYPE_eventListeners.push({"type":"HypeSymbolInit", "callback":symbolInitTest});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment