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

Function add

tools/libxo/xohtml/external/jquery.js:1035–1054  ·  view source on GitHub ↗
( args )

Source from the content-addressed store, hash-verified

1033 firingIndex,
1034 // Add one or several callbacks to the list
1035 add = function( args ) {
1036 var i,
1037 length,
1038 elem,
1039 type,
1040 actual;
1041 for ( i = 0, length = args.length; i < length; i++ ) {
1042 elem = args[ i ];
1043 type = jQuery.type( elem );
1044 if ( type === "array" ) {
1045 // Inspect recursively
1046 add( elem );
1047 } else if ( type === "function" ) {
1048 // Add if not in unique mode and callback is not in
1049 if ( !flags.unique || !self.has( elem ) ) {
1050 list.push( elem );
1051 }
1052 }
1053 }
1054 },
1055 // Fire callbacks
1056 fire = function( context, args ) {
1057 args = args || [];

Callers 2

jquery.jsFile · 0.85
buildParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected