MCPcopy
hub / github.com/dataarts/dat.gui / handleQueueMarkDefer

Function handleQueueMarkDefer

tests/jquery.js:1774–1792  ·  view source on GitHub ↗
( elem, type, src )

Source from the content-addressed store, hash-verified

1772
1773
1774function handleQueueMarkDefer( elem, type, src ) {
1775 var deferDataKey = type + "defer",
1776 queueDataKey = type + "queue",
1777 markDataKey = type + "mark",
1778 defer = jQuery.data( elem, deferDataKey, undefined, true );
1779 if ( defer &&
1780 ( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) &&
1781 ( src === "mark" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) {
1782 // Give room for hard-coded callbacks to fire first
1783 // and eventually mark/queue something else on the element
1784 setTimeout( function() {
1785 if ( !jQuery.data( elem, queueDataKey, undefined, true ) &&
1786 !jQuery.data( elem, markDataKey, undefined, true ) ) {
1787 jQuery.removeData( elem, deferDataKey, true );
1788 defer.resolve();
1789 }
1790 }, 0 );
1791 }
1792}
1793
1794jQuery.extend({
1795

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…