MCPcopy Index your code
hub / github.com/angular-ui/ui-router / playPause

Function playPause

test/angular/1.7/angular-animate.js:1336–1351  ·  view source on GitHub ↗
(playAnimation)

Source from the content-addressed store, hash-verified

1334 // not be paused since that is not possible. If the animation ends when
1335 // paused then it will not complete until unpaused or cancelled.
1336 var playPause = function(playAnimation) {
1337 if (!animationCompleted) {
1338 animationPaused = !playAnimation;
1339 if (timings.animationDuration) {
1340 var value = blockKeyframeAnimations(node, animationPaused);
1341 if (animationPaused) {
1342 temporaryStyles.push(value);
1343 } else {
1344 removeFromArray(temporaryStyles, value);
1345 }
1346 }
1347 } else if (animationPaused && playAnimation) {
1348 animationPaused = false;
1349 close();
1350 }
1351 };
1352
1353 // checking the stagger duration prevents an accidentally cascade of the CSS delay style
1354 // being inherited from the parent. If the transition duration is zero then we can safely

Callers 1

startFunction · 0.70

Calls 3

blockKeyframeAnimationsFunction · 0.70
removeFromArrayFunction · 0.70
closeFunction · 0.70

Tested by

no test coverage detected