MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fire

Function fire

tools/libxo/xohtml/external/jquery.js:1056–1082  ·  view source on GitHub ↗
( context, args )

Source from the content-addressed store, hash-verified

1054 },
1055 // Fire callbacks
1056 fire = function( context, args ) {
1057 args = args || [];
1058 memory = !flags.memory || [ context, args ];
1059 firing = true;
1060 firingIndex = firingStart || 0;
1061 firingStart = 0;
1062 firingLength = list.length;
1063 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
1064 if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
1065 memory = true; // Mark as halted
1066 break;
1067 }
1068 }
1069 firing = false;
1070 if ( list ) {
1071 if ( !flags.once ) {
1072 if ( stack && stack.length ) {
1073 memory = stack.shift();
1074 self.fireWith( memory[ 0 ], memory[ 1 ] );
1075 }
1076 } else if ( memory === true ) {
1077 self.disable();
1078 } else {
1079 list = [];
1080 }
1081 }
1082 },
1083 // Actual Callbacks object
1084 self = {
1085 // 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