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

Function fire

2.1.1/test/other.js:471–496  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

469 stack = !options.once && [],
470 // Fire callbacks
471 fire = function( data ) {
472 memory = options.memory && data;
473 fired = true;
474 firingIndex = firingStart || 0;
475 firingStart = 0;
476 firingLength = list.length;
477 firing = true;
478 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
479 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
480 memory = false; // To prevent further calls using add
481 break;
482 }
483 }
484 firing = false;
485 if ( list ) {
486 if ( stack ) {
487 if ( stack.length ) {
488 fire( stack.shift() );
489 }
490 } else if ( memory ) {
491 list = [];
492 } else {
493 self.disable();
494 }
495 }
496 },
497 // Actual Callbacks object
498 self = {
499 // Add a callback or a collection of callbacks to the list

Callers 1

other.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected