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

Function playPause

lib/test/angular/1.5.0/angular-animate.js:1369–1382  ·  view source on GitHub ↗
(playAnimation)

Source from the content-addressed store, hash-verified

1367 // not be paused since that is not possible. If the animation ends when
1368 // paused then it will not complete until unpaused or cancelled.
1369 var playPause = function(playAnimation) {
1370 if (!animationCompleted) {
1371 animationPaused = !playAnimation;
1372 if (timings.animationDuration) {
1373 var value = blockKeyframeAnimations(node, animationPaused);
1374 animationPaused
1375 ? temporaryStyles.push(value)
1376 : removeFromArray(temporaryStyles, value);
1377 }
1378 } else if (animationPaused && playAnimation) {
1379 animationPaused = false;
1380 close();
1381 }
1382 };
1383
1384 // checking the stagger duration prevents an accidentally cascade of the CSS delay style
1385 // 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