title: jQuery detect element resize
body: <p>I am trying to do detect element resize with jquery resize plugin (<a href="http://benalman.com/projects/jquery-resize-plugin/" rel="nofollow">http://benalman.com/projects/jquery-resize-plugin/</a>) on jquery 1.10.2. </p>
  
  <pre><code>$("#element").resize(function(){
    console.log("resize");
  });
  </code></pre>
  
  <p>I did the testing on Firefox 25 and I get this error:</p>
  
  <pre><code>Error: TypeError: r is undefined
  Source File: jquery.ba-resize.min.js
  Line: 9
  </code></pre>
  
  <p>How can I solve it? Is there any alternative way / plugin for doing this?</p>
  
  <p>Thank you.</p>