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

Method eventCallback

src/gsap-core.js:1405–1418  ·  view source on GitHub ↗
(type, callback, params)

Source from the content-addressed store, hash-verified

1403 }
1404
1405 eventCallback(type, callback, params) {
1406 let vars = this.vars;
1407 if (arguments.length > 1) {
1408 if (!callback) {
1409 delete vars[type];
1410 } else {
1411 vars[type] = callback;
1412 params && (vars[type + "Params"] = params);
1413 type === "onUpdate" && (this._onUpdate = callback);
1414 }
1415 return this;
1416 }
1417 return vars[type];
1418 }
1419
1420 then(onFulfilled) {
1421 let self = this,

Callers 4

ScrollTrigger.jsFile · 0.80
_fromToFunction · 0.80
initMethod · 0.80
_fromToFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected