From 4c3f945a9d30794ffcad2a0911dda5cbbd38b8ba Mon Sep 17 00:00:00 2001 From: Corbacho Date: Wed, 2 Apr 2014 14:43:18 +0300 Subject: [PATCH] Making the library compatible with old jQuery versions < 1.7 --- jquery.matchHeight.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jquery.matchHeight.js b/jquery.matchHeight.js index f1c16d9..ccbbde4 100644 --- a/jquery.matchHeight.js +++ b/jquery.matchHeight.js @@ -135,7 +135,8 @@ $($.fn.matchHeight._applyDataApi); // update heights on load and resize events - $(window).on('load resize orientationchange', $.fn.matchHeight._update); + + $(window).bind('load resize orientationchange', $.fn.matchHeight._update); /* * rows utility function @@ -175,4 +176,4 @@ return rows; }; -})(jQuery); \ No newline at end of file +})(jQuery);