diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | bower.json | 2 | ||||
-rw-r--r-- | jquery.equalheights.js | 2 | ||||
-rw-r--r-- | jquery.equalheights.min.js | 4 |
4 files changed, 10 insertions, 5 deletions
@@ -1,6 +1,6 @@ # jQuery Simple Equal Heights -Version 1.4.1 +Version 1.4.2 ## Summary @@ -45,9 +45,14 @@ See `example.html` in examples folder. ## Contributors * [betweenbrain](https://github.com/betweenbrain) +* [Korri](https://github.com/Korri) ### Changelog +#### Version 1.4.2 + +* allow multiple `data-heights` elements per page (props [Korri](https://github.com/Korri)) + #### Version 1.4.1 * add bower support @@ -1,6 +1,6 @@ { "name": "jQuery.equalHeights", - "version": "1.4.1", + "version": "1.4.2", "main": "jQuery.equalHeights.js", "dependencies": { "jquery": ">=1.7" diff --git a/jquery.equalheights.js b/jquery.equalheights.js index 17f6b73..9916a25 100644 --- a/jquery.equalheights.js +++ b/jquery.equalheights.js @@ -6,7 +6,7 @@ * Uses the same license as jQuery, see: * http://docs.jquery.com/License * - * @version 1.4 + * @version 1.4.2 */ (function($) { diff --git a/jquery.equalheights.min.js b/jquery.equalheights.min.js index 7b40b88..4959421 100644 --- a/jquery.equalheights.min.js +++ b/jquery.equalheights.min.js @@ -6,6 +6,6 @@ * Uses the same license as jQuery, see: * http://docs.jquery.com/License * - * @version 1.4 + * @version 1.4.2 */ -(function(e){e.fn.equalHeights=function(){var t=0,n=e(this);n.each(function(){var n=e(this).innerHeight();if(n>t){t=n}});return n.height(t)};e('[data-heights="equal"]').each(function(){var t=e(this),n=t.data("targets");t.find(n).equalHeights()})})(jQuery) +!function(a){a.fn.equalHeights=function(){var b=0,c=a(this);return c.each(function(){var c=a(this).innerHeight();c>b&&(b=c)}),c.height(b)},a('[data-heights="equal"]').each(function(){var b=a(this),c=b.data("targets");b.find(c).equalHeights()})}(jQuery); |