MCPcopy Index your code
hub / github.com/JsAaron/jQuery / fire

Function fire

2.1.1/src/callbacks.js:65–90  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

63 stack = !options.once && [],
64 // Fire callbacks
65 fire = function( data ) {
66 memory = options.memory && data;
67 fired = true;
68 firingIndex = firingStart || 0;
69 firingStart = 0;
70 firingLength = list.length;
71 firing = true;
72 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
73 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
74 memory = false; // To prevent further calls using add
75 break;
76 }
77 }
78 firing = false;
79 if ( list ) {
80 if ( stack ) {
81 if ( stack.length ) {
82 fire( stack.shift() );
83 }
84 } else if ( memory ) {
85 list = [];
86 } else {
87 self.disable();
88 }
89 }
90 },
91 // Actual Callbacks object
92 self = {
93 // Add a callback or a collection of callbacks to the list

Callers 1

callbacks.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected