Equal Heights JQuery Plugin

Equal Heights JQuery Plugin

I'm a bit new to JQuery and am currently trying to get the equalHeights plugin found here:


To fire when the window is re-sized. 

The code below calls the function, but won't recall it when the window is resized.
Am I missing something?
  1. (function ($) {
  2. $(document).ready(function () {
  3. var cols = $(".cols");
  4. cols.resize(function () {
  5. cols.equalHeights();
  6. });
  7. cols.trigger('resize');
  8. });
  9. })(jQuery);