( args )
| 1043 | firingIndex, |
| 1044 | // Add one or several callbacks to the list |
| 1045 | add = function( args ) { |
| 1046 | var i, |
| 1047 | length, |
| 1048 | elem, |
| 1049 | type, |
| 1050 | actual; |
| 1051 | for ( i = 0, length = args.length; i < length; i++ ) { |
| 1052 | elem = args[ i ]; |
| 1053 | type = jQuery.type( elem ); |
| 1054 | if ( type === "array" ) { |
| 1055 | // Inspect recursively |
| 1056 | add( elem ); |
| 1057 | } else if ( type === "function" ) { |
| 1058 | // Add if not in unique mode and callback is not in |
| 1059 | if ( !flags.unique || !self.has( elem ) ) { |
| 1060 | list.push( elem ); |
| 1061 | } |
| 1062 | } |
| 1063 | } |
| 1064 | }, |
| 1065 | // Fire callbacks |
| 1066 | fire = function( context, args ) { |
| 1067 | args = args || []; |
no outgoing calls
no test coverage detected