JQuery detect the event cause
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6692031/check-if-event-is-triggered-by-a-human">Check if event is triggered by a human</a>  </p>
</blockquote>



<p>In <code>jQuery</code> is there a way to say if event handler was kicked off by calling <code>control.trigger("event")</code> or in a natural way - by user input? I need this information within my event handler.</p>

<p>I tried passing a flag when calling <code>trigger</code> but that doesn't fit nicely into my design as I have already had some custom data associated with my event handlers, which I have to reset back.</p>
