MCPcopy
hub / github.com/nbubna/store / fire

Function fire

libs/jquery/jquery.js:1009–1034  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

1007 stack = !options.once && [],
1008 // Fire callbacks
1009 fire = function( data ) {
1010 memory = options.memory && data;
1011 fired = true;
1012 firingIndex = firingStart || 0;
1013 firingStart = 0;
1014 firingLength = list.length;
1015 firing = true;
1016 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
1017 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
1018 memory = false; // To prevent further calls using add
1019 break;
1020 }
1021 }
1022 firing = false;
1023 if ( list ) {
1024 if ( stack ) {
1025 if ( stack.length ) {
1026 fire( stack.shift() );
1027 }
1028 } else if ( memory ) {
1029 list = [];
1030 } else {
1031 self.disable();
1032 }
1033 }
1034 },
1035 // Actual Callbacks object
1036 self = {
1037 // Add a callback or a collection of callbacks to the list

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…