(playAnimation)
| 1130 | // not be paused since that is not possible. If the animation ends when |
| 1131 | // paused then it will not complete until unpaused or cancelled. |
| 1132 | var playPause = function(playAnimation) { |
| 1133 | if (!animationCompleted) { |
| 1134 | animationPaused = !playAnimation; |
| 1135 | if (timings.animationDuration) { |
| 1136 | var value = blockKeyframeAnimations(node, animationPaused); |
| 1137 | animationPaused |
| 1138 | ? temporaryStyles.push(value) |
| 1139 | : removeFromArray(temporaryStyles, value); |
| 1140 | } |
| 1141 | } else if (animationPaused && playAnimation) { |
| 1142 | animationPaused = false; |
| 1143 | close(); |
| 1144 | } |
| 1145 | }; |
| 1146 | |
| 1147 | // checking the stagger duration prevents an accidently cascade of the CSS delay style |
| 1148 | // being inherited from the parent. If the transition duration is zero then we can safely |
no test coverage detected