Fix #879 - recompute jumpnav calculations when toggling accordion panels.
Expose lightweight event bus on global object: window.uom.bus - the bus is an instance of EventEmitter from the super-event-emitter library - it allows emitting and listening for custom events across design system components.
Enhance bus with custom nsEmit helper function to ease the task of namespacing events with the name of the emitting component.
Install and expose lodash's throttle and debounce utility functions: window.uom.utils.throttle and window.uom.utils.debounce (also remove just-debounce library`). Use these helpers to deal with scroll and resize events.
Implement defer utility function to defer event handlers (equivalent of wrapping an event handler in a function that calls setTimeout(handler, 0)).
Tweak scrolling thresholds for fixed positioning of injected header and jumpnav.
Add smooth CSS transition for when the jumpnav becomes fixed or static.
window.uom.bus
- the bus is an instance ofEventEmitter
from thesuper-event-emitter
library - it allows emitting and listening for custom events across design system components.bus
with customnsEmit
helper function to ease the task of namespacing events with the name of the emitting component.throttle
anddebounce
utility functions:window.uom.utils.throttle
andwindow.uom.utils.debounce
(also removejust-debounce
library`). Use these helpers to deal with scroll and resize events.defer
utility function to defer event handlers (equivalent of wrapping an event handler in a function that callssetTimeout(handler, 0)
).