template/publish.js
function getMembers2(data) {
	var find = function(data, spec) {
		return data(spec).get();
	};
	var members = {
		classes: find( data, {kind: 'class'} ),
		externals: find( data, {kind: 'external'} ),
		events: find( data, {kind: 'event'} ),
		globals: find(data, {
			kind: ['member', 'function', 'constant', 'typedef'],
			memberof: { isUndefined: true }
		}),
		mixins: find( data, {kind: 'mixin'} ),
		modules: find( data, {kind: 'module'} ),
		namespaces: find( data, {kind: 'namespace'}),
		typedef: find( data, {kind: 'typedef', isTSEnum:{is:true} }),
		callbacks: find( data, {kind: 'typedef', isTSEnum:{isUndefined:true} })


	};



	// functions that are also modules (as in "module.exports = function() {};") are not globals
	members.globals = members.globals.filter(function(doclet) {
		if ( isModuleFunction2(doclet) ) {
			return false;
		}

		return true;
	});

	return members;
}
function getMembers2(data) {
	var find = function(data, spec) {
		return data(spec).get();
	};
	var members = {
		classes: find( data, {kind: 'class'} ),
		externals: find( data, {kind: 'external'} ),
		events: find( data, {kind: 'event'} ),
		globals: find(data, {
			kind: ['member', 'function', 'constant', 'typedef'],
			memberof: { isUndefined: true }
		}),
		mixins: find( data, {kind: 'mixin'} ),
		modules: find( data, {kind: 'module'} ),
		namespaces: find( data, {kind: 'namespace'}),
		typedef: find( data, {kind: 'typedef', isTSEnum:{is:true} }),
		callbacks: find( data, {kind: 'typedef', isTSEnum:{isUndefined:true} })


	};



	// functions that are also modules (as in "module.exports = function() {};") are not globals
	members.globals = members.globals.filter(function(doclet) {
		if ( isModuleFunction2(doclet) ) {
			return false;
		}

		return true;
	});

	return members;
}
function getMembers2 ( data ) { var find = function ( data , spec ) { return data ( spec ) . get ( ) ; } ; var members = { classes : find ( data , { kind : 'class' } ) , externals : find ( data , { kind : 'external' } ) , events : find ( data , { kind : 'event' } ) , globals : find ( data , { kind : [ 'member' , 'function' , 'constant' , 'typedef' ] , memberof : { isUndefined : true } } ) , mixins : find ( data , { kind : 'mixin' } ) , modules : find ( data , { kind : 'module' } ) , namespaces : find ( data , { kind : 'namespace' } ) , typedef : find ( data , { kind : 'typedef' , isTSEnum : { is : true } } ) , callbacks : find ( data , { kind : 'typedef' , isTSEnum : { isUndefined : true } } ) } ; // functions that are also modules (as in "module.exports = function() {};") are not globals members . globals = members . globals . filter ( function ( doclet ) { if ( isModuleFunction2 ( doclet ) ) { return false ; } return true ; } ) ; return members ; }
Retrieve all of the following types of members from a set of doclets:

+ Classes
+ Externals
+ Globals
+ Mixins
+ Modules
+ Namespaces
+ Events
@param {TAFFY} data The TaffyDB database to search.
@return {object} An object with `classes`, `externals`, `globals`, `mixins`, `modules`,
`events`, and `namespaces` properties. Each property contains an array of objects.
Retrieve all of the following types of members from a set of doclets :