What happen when the selector didn't find in JQuery?
<p>E.g:</p>

<p>I pass one <code>selector</code> as <code>parameter</code> to a function.</p>

<pre><code>// selector is an object
function(selector){

  selector.trigger('eventHere');
}
</code></pre>

<p>Obviously,the <code>event</code> will never fireed if the <code>selector</code> which passed in didn't have this <code>event</code>,but should I do some condition checking before trigger the event? I mean:</p>

<pre><code>// selector is an object
if(selector === 'matched'){
  // then fire the event
}
else{
  // do nothing
}
</code></pre>

<p>or just leave it...?</p>

<p>Thank you very much!!</p>
