* Start the next animation on this element's queue (named or default). * * @returns the next animation that is starting.
(element, queueName, skip)
| 1175 | * @returns the next animation that is starting. |
| 1176 | */ |
| 1177 | function dequeue(element, queueName, skip) { |
| 1178 | if (queueName !== false) { |
| 1179 | if (!isString(queueName)) { |
| 1180 | queueName = ""; |
| 1181 | } |
| 1182 | var data = Data(element), |
| 1183 | animation = data.queueList[queueName]; |
| 1184 | if (animation) { |
| 1185 | data.queueList[queueName] = animation._next || null; |
| 1186 | if (!skip) { |
| 1187 | animate(animation); |
| 1188 | } |
| 1189 | } else if (animation === null) { |
| 1190 | delete data.queueList[queueName]; |
| 1191 | } |
| 1192 | return animation; |
| 1193 | } |
| 1194 | } |
| 1195 | /** |
| 1196 | * Remove an animation from the active animation list. If it has a queue set |
| 1197 | * then remember it as the last animation for that queue, and free the one |
no test coverage detected
searching dependent graphs…