Skip to content

manageBehavior events

Mike Byrne edited this page Dec 24, 2021 · 1 revision

manageBehaviors also fires some events that may come in useful to you (they're used inside of manageBehaviors and createBehaviors):

  • a debounced resize event: window.addEventListener('resized', () => {});
  • a media query changed event: window.addEventListener('mediaQueryUpdated', () => {});

Also, window.A17.currentMediaQuery will always be kept up-to-date with the current media query.