(playAnimation)
| 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 |
no test coverage detected