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