MCPcopy
hub / github.com/jquery-backstretch/jquery-backstretch / fire

Function fire

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

Source from the content-addressed store, hash-verified

964 stack = !options.once && [],
965 // Fire callbacks
966 fire = function( data ) {
967 memory = options.memory && data;
968 fired = true;
969 firingIndex = firingStart || 0;
970 firingStart = 0;
971 firingLength = list.length;
972 firing = true;
973 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
974 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
975 memory = false; // To prevent further calls using add
976 break;
977 }
978 }
979 firing = false;
980 if ( list ) {
981 if ( stack ) {
982 if ( stack.length ) {
983 fire( stack.shift() );
984 }
985 } else if ( memory ) {
986 list = [];
987 } else {
988 self.disable();
989 }
990 }
991 },
992 // Actual Callbacks object
993 self = {
994 // 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