Trigger Enviar parâmetro



$('body').trigger('this_works', [{data: [1, 2, 3]}, 'something']);

$('body').on('this_works', function (event, json, string) {
  // parameter is stocked in json.data here.
  console.log(event, json, string);
});
Graceful Guanaco