MCPcopy
hub / github.com/greensock/GSAP / _dispatch

Function _dispatch

esm/ScrollTrigger.js:405–409  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

403 return _removeListener(ScrollTrigger, "scrollEnd", _softRefresh) || _refreshAll(true);
404},
405 _dispatch = function _dispatch(type) {
406 return _listeners[type] && _listeners[type].map(function (f) {
407 return f();
408 }) || _emptyArray;
409},
410 _savedStyles = [],
411 // when ScrollTrigger.saveStyles() is called, the inline styles are recorded in this Array in a sequential format like [element, cssText, gsCache, media]. This keeps it very memory-efficient and fast to iterate through.
412_revertRecorded = function _revertRecorded(media) {

Callers 5

_onScrollFunction · 0.70
_revertAllFunction · 0.70
_refreshAllFunction · 0.70
_updateAllFunction · 0.70
ScrollTrigger.jsFile · 0.70

Calls 1

fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…