MCPcopy Create free account
hub / github.com/JsAaron/jQuery / fire

Function fire

2.1.1/test/jquery-2.1.1.js:3064–3089  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

3062 stack = !options.once && [],
3063 // Fire callbacks
3064 fire = function( data ) {
3065 memory = options.memory && data;
3066 fired = true;
3067 firingIndex = firingStart || 0;
3068 firingStart = 0;
3069 firingLength = list.length;
3070 firing = true;
3071 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
3072 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
3073 memory = false; // To prevent further calls using add
3074 break;
3075 }
3076 }
3077 firing = false;
3078 if ( list ) {
3079 if ( stack ) {
3080 if ( stack.length ) {
3081 fire( stack.shift() );
3082 }
3083 } else if ( memory ) {
3084 list = [];
3085 } else {
3086 self.disable();
3087 }
3088 }
3089 },
3090 // Actual Callbacks object
3091 self = {
3092 // Add a callback or a collection of callbacks to the list

Callers 1

jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected