title: jQuery Autosize plugin error - intermediate value(...) is not a function
body: <p>I use jQuery Autosize plugin:</p>
  
  <p><a href="http://www.jacklmoore.com/autosize/">http://www.jacklmoore.com/autosize/</a></p>
  
  <p>The script itself you can see here:</p>
  
  <p><a href="http://www.jacklmoore.com/js/jquery.autosize.js">http://www.jacklmoore.com/js/jquery.autosize.js</a></p>
  
  <p>This is how I use the script:</p>
  
  <pre><code>jQuery(function($){$(document).ready(function(){
  $('textarea').autosize();
  }
  </code></pre>
  
  <p><strong>Problem N 1</strong></p>
  
  <p>Just updated the script to the latest version and it stopped to work:</p>
  
  <pre><code>"TypeError: (intermediate value)(...) is not a function"
  </code></pre>
  
  <p>Javascript console reports this error on the last line of the script:</p>
  
  <pre><code>}(window.jQuery || window.$)); 
  </code></pre>
  
  <p><strong>Problem N 2</strong></p>
  
  <p>Script doesn't work in modal windows (PrettyPhoto) and javascript console doesn't show any errors.</p>
  
  <p>Any ideas?</p>