jQuery $(window).resize not firing within jQuery plugin
<p>I've created a custom jQuery plugin and having issues getting the window resize function to fire within the plugin. Broke it down to the basics of what I got, can't figure out why it's not firing:</p>

<pre><code>;(function ( $, window, document, undefined ) {
  $.fn.test = function(options) {
    $(window).resize(function() {
      alert('sdsd');
    });
  };
})(jQuery);

$(function() {
  $('.element').test();
});
</code></pre>
