MCPcopy
hub / github.com/julianshapiro/velocity / dequeue

Function dequeue

velocity.js:1177–1194  ·  view source on GitHub ↗

* Start the next animation on this element's queue (named or default). * * @returns the next animation that is starting.

(element, queueName, skip)

Source from the content-addressed store, hash-verified

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

Callers 1

completeCallFunction · 0.70

Calls 3

isStringFunction · 0.70
DataFunction · 0.70
animateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…