(playAnimation)
| 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 accidently cascade of the CSS delay style |
| 1385 | // being inherited from the parent. If the transition duration is zero then we can safely |
no test coverage detected