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

Function fire

public/assets/assets/scripts/frontend.js:3086–3111  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

3084 stack = !options.once && [],
3085 // Fire callbacks
3086 fire = function( data ) {
3087 memory = options.memory && data;
3088 fired = true;
3089 firingIndex = firingStart || 0;
3090 firingStart = 0;
3091 firingLength = list.length;
3092 firing = true;
3093 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
3094 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
3095 memory = false; // To prevent further calls using add
3096 break;
3097 }
3098 }
3099 firing = false;
3100 if ( list ) {
3101 if ( stack ) {
3102 if ( stack.length ) {
3103 fire( stack.shift() );
3104 }
3105 } else if ( memory ) {
3106 list = [];
3107 } else {
3108 self.disable();
3109 }
3110 }
3111 },
3112 // Actual Callbacks object
3113 self = {
3114 // Add a callback or a collection of callbacks to the list

Callers 1

frontend.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected