(animation, type, executeLazyFirst)
| 963 | return label; |
| 964 | }, |
| 965 | _callback = function _callback(animation, type, executeLazyFirst) { |
| 966 | var v = animation.vars, |
| 967 | callback = v[type], |
| 968 | prevContext = _context, |
| 969 | context = animation._ctx, |
| 970 | params, |
| 971 | scope, |
| 972 | result; |
| 973 | |
| 974 | if (!callback) { |
| 975 | return; |
| 976 | } |
| 977 | |
| 978 | params = v[type + "Params"]; |
| 979 | scope = v.callbackScope || animation; |
| 980 | executeLazyFirst && _lazyTweens.length && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values. |
| 981 | |
| 982 | context && (_context = context); |
| 983 | result = params ? callback.apply(scope, params) : callback.call(scope); |
| 984 | _context = prevContext; |
| 985 | return result; |
| 986 | }, |
| 987 | _interrupt = function _interrupt(animation) { |
| 988 | _removeFromParent(animation); |
| 989 |
no test coverage detected
searching dependent graphs…