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

Function _checkPlugin

esm/gsap-core.js:2827–2845  ·  view source on GitHub ↗
(property, vars, tween, index, target, targets)

Source from the content-addressed store, hash-verified

2825 return copy;
2826},
2827 _checkPlugin = function _checkPlugin(property, vars, tween, index, target, targets) {
2828 var plugin, pt, ptLookup, i;
2829
2830 if (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {
2831 tween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);
2832
2833 if (tween !== _quickTween) {
2834 ptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.
2835
2836 i = plugin._props.length;
2837
2838 while (i--) {
2839 ptLookup[plugin._props[i]] = pt;
2840 }
2841 }
2842 }
2843
2844 return plugin;
2845},
2846 _overwritingTween,
2847 //store a reference temporarily so we can avoid overwriting itself.
2848_forceAllPropTweens,

Callers 2

CSSPlugin.jsFile · 0.90
_initTweenFunction · 0.70

Calls 2

_processVarsFunction · 0.70
initMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…