MCPcopy
hub / github.com/requirejs/requirejs / handleQueueMarkDefer

Function handleQueueMarkDefer

tests/jquery/scripts/jquery-1.7.1.js:1980–1998  ·  view source on GitHub ↗
( elem, type, src )

Source from the content-addressed store, hash-verified

1978
1979
1980function handleQueueMarkDefer( elem, type, src ) {
1981 var deferDataKey = type + "defer",
1982 queueDataKey = type + "queue",
1983 markDataKey = type + "mark",
1984 defer = jQuery._data( elem, deferDataKey );
1985 if ( defer &&
1986 ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
1987 ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
1988 // Give room for hard-coded callbacks to fire first
1989 // and eventually mark/queue something else on the element
1990 setTimeout( function() {
1991 if ( !jQuery._data( elem, queueDataKey ) &&
1992 !jQuery._data( elem, markDataKey ) ) {
1993 jQuery.removeData( elem, deferDataKey, true );
1994 defer.fire();
1995 }
1996 }, 0 );
1997 }
1998}
1999
2000jQuery.extend({
2001

Callers 1

jquery-1.7.1.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…