The goal is to pass parametres through event.data, here is complete example where I tested it : http://jsfiddle.net/
$el.trigger( $.Event('click.NGB', { example: '1' }));
$el.trigger( $.Event('click.NGB', {data: { example: '2' } })); // :-(
$el.trigger( $.Event('click.NGB', [{ example: '3' }]));
$el.trigger( $.Event('click.NGB', [{ data: { example: '4' } }]));
$el.trigger( $.Event('click.NGB'), { example: '5' });
$el.trigger({ type: 'click.NGB', data: [{ example: '6' }] }); // :-(
I don't know why if an Event object has a data property we can't access it...
But with '.on' function it's works! :-(
$('#response').on( 'click.NGB', {example: '7'}, function(e){ e.data.example; } );
Anyone know how to do? :-)
ANSWER
After all documentation and tests, I've decided use this method :
$el.trigger('click.NGB', [ {example : '8'} ] );
Thanks to all!
This is a duplicate question of this question.
The "Short Answer" on that question should answer your question quite nicely.