(playAnimation)
| 1356 | // not be paused since that is not possible. If the animation ends when |
| 1357 | // paused then it will not complete until unpaused or cancelled. |
| 1358 | var playPause = function(playAnimation) { |
| 1359 | if (!animationCompleted) { |
| 1360 | animationPaused = !playAnimation; |
| 1361 | if (timings.animationDuration) { |
| 1362 | var value = blockKeyframeAnimations(node, animationPaused); |
| 1363 | if (animationPaused) { |
| 1364 | temporaryStyles.push(value); |
| 1365 | } else { |
| 1366 | removeFromArray(temporaryStyles, value); |
| 1367 | } |
| 1368 | } |
| 1369 | } else if (animationPaused && playAnimation) { |
| 1370 | animationPaused = false; |
| 1371 | close(); |
| 1372 | } |
| 1373 | }; |
| 1374 | |
| 1375 | // checking the stagger duration prevents an accidentally cascade of the CSS delay style |
| 1376 | // being inherited from the parent. If the transition duration is zero then we can safely |
no test coverage detected