title: How return $.event.trigger result
body: <p>How to return the result of the work caused by the event?
  Example:</p>
  
  <pre><code>var res = $.event.trigger({
    type: 'my_event_name',
    element: el
  });
  console.dir(res);
  
  $("body").on('my_event_name', function(e)
  {
     return save_data(e.element);
  });
  </code></pre>
  
  <p>There is a code that performs the default action, if there is no event handler. If there is an event handler, you must perform the work he and the default code should not work.
  Example pseudocode:</p>
  
  <pre><code>var res = $.event.trigger({
    type: 'my_event_name',
    element: el
  });
  
  if (res)
  {
      return true;
  }
  else
  {
      // default action code
  }
  </code></pre>