MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / fire

Function fire

Three.js/js/jquery-1.9.1.js:1029–1054  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

1027 stack = !options.once && [],
1028 // Fire callbacks
1029 fire = function( data ) {
1030 memory = options.memory && data;
1031 fired = true;
1032 firingIndex = firingStart || 0;
1033 firingStart = 0;
1034 firingLength = list.length;
1035 firing = true;
1036 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
1037 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
1038 memory = false; // To prevent further calls using add
1039 break;
1040 }
1041 }
1042 firing = false;
1043 if ( list ) {
1044 if ( stack ) {
1045 if ( stack.length ) {
1046 fire( stack.shift() );
1047 }
1048 } else if ( memory ) {
1049 list = [];
1050 } else {
1051 self.disable();
1052 }
1053 }
1054 },
1055 // Actual Callbacks object
1056 self = {
1057 // Add a callback or a collection of callbacks to the list

Callers 1

jquery-1.9.1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected