title: Detect when jQuery found an element
body: <p>Is there a way to detect when jQuery found in element on the document. For example, I have a function:</p>
  
  <pre><code>function filter(jObject) { 
      alert('Did something wonderful');
      console.log(jObject); // jQueryObject
  }
  </code></pre>
  
  <p>I want filter to attach itself to every jQuery object and called when $() is triggered. So:</p>
  
  <pre><code>&lt;div id="divElement"&gt;A Dummy&lt;/div&gt;
  
  &lt;script&gt;
      $('#divElement'); // Will trigger filter() and alert will popup.
      // Console will print out the jQuery Object above.
  &lt;/script&gt;
  </code></pre>
  
  <p>Why I want to do this? Suppose I go</p>
  
  <pre><code>document.getElementById('divElement').controller = new function() { ... };
  $('#divElement').controller; // This is undefined.
  </code></pre>
  
  <p>Thus i need to write something like $.fn.checkExtendedProperty = function();  and have it triggered each time $ is called to find those property that jQuery misses. (Without modifying jquery.js file itself. I rather not tamper with it for obvious reasons.)</p>
  
  <p>Interesting hack I found, and it works. Not really sure what the implication are yet.</p>
  
  <pre><code>$$ = $;
  $ = function(mix) {
      var jObj = $$(mix);
      jObj = checkExtendedProperty(jObj); // Binding Extended Property
      return jObj;
  };
  function checkExtendedProperty(jObj) { ... }
  // Copying all References.
  for( var i in $$ ) { $[i] = $$[i]; }
  </code></pre>
  
  <p>If anyone know a better way using jQuery native function or some kind of plugin hook, it would be really helpful.</p>