function eventTrigger ( api, type, args, any )
{
	if ( any && ! api.flatten().length ) {
		return;
	}

	if ( typeof type === 'string' ) {
		type = type +'.dt';
	}

	args.unshift( api );

	$(api.table().node()).trigger( type, args );
}
Trigger an event on a DataTable

@param {DataTable.Api} api      DataTable to trigger events on
@param  {boolean}      selected true if selected, false if deselected
@param  {string}       type     Item type acting on
@param  {boolean}      any      Require that there are values before
    triggering
@private